HOME | DD

jostef β€” How do i center a text?
Published: 2010-05-24 17:22:58 +0000 UTC; Views: 46709; Favourites: 142; Downloads: 0
Redirect to original
Description body div#devskin2892785 .journalbox { border:none; text-align:center; background-color:#ccd9c8; } body div#devskin2892785 .journaltop { background-color:transparent; background-image:url(https://fc09.deviantart.com/fs45/o/2009/124/4/c/121473076_65450_header.png); background-position:top center; background-repeat:no-repeat; width:450px; height:100px; margin:0 auto; padding:0px; font-size:11px; color:#747E74; letter-spacing:-1.5px; padding-top:290px; } body div#devskin2892785 .journaltop img { display:none; } body div#devskin2892785 .journaltop h2 { font-size:52px; color:#565C56; font-weight:normal; letter-spacing:-2px; } body div#devskin2892785 .journaltop span { font-size:11px; color:#747E74; letter-spacing:-1.5px; } body div#devskin2892785 .journaltext { width:450px; margin:0 auto 30px auto; text-align:left; color:#879387; font-size:12px; line-height:18px; } body div#devskin2892785 .journaltext a { text-decoration:none !important; color:#0CA1C6; } body div#devskin2892785 .journaltext a:hover { text-decoration:underline !important; } body div#devskin2892785 .journalbottom { color:#797F79; } body div#devskin2892785 .journalbottom a { text-decoration:none !important; color:#18819B; } body div#devskin2892785 .journalbottom a:hover { text-decoration:underline !important; } body div#devskin2892785 .journaltext .title { font-size:17px; color:#188099; margin-bottom:-15px; } body div#devskin2892785 .content { background-color:#e6ede4; position:relative; z-index:1; } body div#devskin2892785 .fix2 { border:1px solid #b2bdae; } body div#devskin2892785 .fix { padding:0px 20px; text-align:justify; border:1px solid #fff; } body div#devskin2892785 .tl { position:absolute; top:0; left:0; background-image:url(https://fc03.deviantart.com/fs43/o/2009/124/6/e/121473076_65451_tl.png); height:10px; width:10px; background-repeat:no-repeat; } body div#devskin2892785 .tr { position:absolute; top:0; right:0; _right:8px; background-image:url(https://fc00.deviantart.com/fs43/o/2009/124/f/8/121473076_65452_tr.png); height:10px; width:10px; background-repeat:no-repeat; } body div#devskin2892785 .bl { position:absolute; bottom:0; _bottom:50px; left:0; background-image:url(https://fc03.deviantart.com/fs45/o/2009/124/e/1/121473076_65453_bl.png); height:10px; width:10px; border:none !important; background-repeat:no-repeat; z-index:50; } body div#devskin2892785 .br { position:absolute; bottom:0; _bottom:50px; right:0; _right:8px; background-image:url(https://fc05.deviantart.com/fs43/o/2009/124/3/6/121473076_65454_br.png); height:10px; width:10px; border:none !important; background-repeat:no-repeat; z-index:50; } body div#devskin2892785 ul { margin:0; padding:0; list-style-type:none; } body div#devskin2892785 ul li { width:100%; background-color:#D6E0D6; height:30px; margin-bottom:10px; text-align:left; line-height:30px; text-indent:10px; color:#929792; } body div#devskin2892785 ul li b { font-weight:bold; text-transform:uppercase; color:#797F79; } body div#devskin2892785 ul.list { display:none; }



I was just wondering, how can I center the text in the description of my photo? I thought there was a page
on dA that shows those codes, but I canΒ΄t seem to find it. PLEASE HELP!

Again, thankyou for all the support you are giving me

Related content
Comments: 128

Kiramera In reply to ??? [2018-07-03 00:51:19 +0000 UTC]

yep!

πŸ‘: 0 ⏩: 1

0rganic-Trash In reply to Kiramera [2018-07-03 04:11:00 +0000 UTC]

ok just making sure ^^

πŸ‘: 0 ⏩: 0

JenniferMtnz [2018-04-01 18:01:32 +0000 UTC]

What worked for me was:

< div align="center" >CONTENT < /div >

*Without spaces. Also, you can change the word CENTER for RIGHT or LEFT for dif. alignments.
*You can use it with stamps!

πŸ‘: 0 ⏩: 5

KinyACat In reply to JenniferMtnz [2019-06-14 12:57:08 +0000 UTC]

oh nvm it finally worked
i just put a space in between div and align

πŸ‘: 1 ⏩: 1

JenniferMtnz In reply to KinyACat [2020-04-08 01:19:40 +0000 UTC]

πŸ‘: 0 ⏩: 0

KinyACat In reply to JenniferMtnz [2019-06-14 12:55:13 +0000 UTC]

theΒ < /div > is ok but theΒ < div align="center"Β > didn't work even without the spaces

πŸ‘: 0 ⏩: 0

x-ghxstly In reply to JenniferMtnz [2018-11-17 13:22:36 +0000 UTC]

CONTENT

πŸ‘: 0 ⏩: 0

Angxlldoll In reply to JenniferMtnz [2018-05-25 16:00:49 +0000 UTC]

my gosh thank you that's useful lol

πŸ‘: 0 ⏩: 1

JenniferMtnz In reply to Angxlldoll [2018-06-16 00:51:17 +0000 UTC]

ywβ™₯

πŸ‘: 0 ⏩: 0

KaroMika In reply to JenniferMtnz [2018-05-03 15:27:07 +0000 UTC]

Thank you so much, that's workΒ  Β 

πŸ‘: 0 ⏩: 1

JenniferMtnz In reply to KaroMika [2018-05-05 02:15:39 +0000 UTC]

β™₯

πŸ‘: 0 ⏩: 0

Plumiie [2018-03-31 17:28:21 +0000 UTC]

test


πŸ‘: 0 ⏩: 0

Plumiie [2018-03-31 17:27:40 +0000 UTC]

divalign="center">test

πŸ‘: 0 ⏩: 0

FluffIsHere In reply to ??? [2017-12-24 19:58:46 +0000 UTC]

this one worked for me, just get rid of the space at the start
< div align="center">Put your text here
I know it works with text, but i don't know if it works with stamps or anything.

πŸ‘: 0 ⏩: 0

shiiiga In reply to ??? [2017-12-22 21:32:29 +0000 UTC]

Content test

πŸ‘: 0 ⏩: 0

shiiiga In reply to ??? [2017-12-22 21:30:57 +0000 UTC]

CONTENT

πŸ‘: 0 ⏩: 0

Hoshhi In reply to ??? [2017-12-20 10:10:33 +0000 UTC]

Β  < div align="center"> but put it on the top of everything or the thing you want it to be in the center and make sure there is nothing beside it if you want everything to be in the middle just putΒ < div align="center"> at the top (and make sure there is nothing beside it) also i added a space between div and < so remove it before saving

πŸ‘: 0 ⏩: 0

Hassan-Draws In reply to ??? [2017-12-09 11:34:53 +0000 UTC]

CONTENT

πŸ‘: 0 ⏩: 0

Lab-Gr0wn-Lambs In reply to ??? [2017-07-14 21:30:59 +0000 UTC]

It worked on the text- but not the stamps...Β 

πŸ‘: 0 ⏩: 0

olasmo In reply to ??? [2017-07-11 08:58:49 +0000 UTC]

test

πŸ‘: 0 ⏩: 0

AiRaibu [2017-04-23 04:37:38 +0000 UTC]

Thanks to everyone in the comments who helped!~

πŸ‘: 0 ⏩: 0

Sparklekatz0 [2017-04-14 20:09:55 +0000 UTC]

< div align="center" >CONTENT< /div >

πŸ‘: 0 ⏩: 0

Sparklekatz0 In reply to ??? [2017-04-13 20:24:59 +0000 UTC]

test

πŸ‘: 0 ⏩: 0

AzraelisticAzzy [2017-01-17 23:45:31 +0000 UTC]

CONTENT

πŸ‘: 0 ⏩: 0

project-miku [2016-10-08 02:15:01 +0000 UTC]

To center something, put it like this:
(Without the spaces)

< div align="center" >CONTENT< /div >

πŸ‘: 0 ⏩: 1

ArtJournal77 In reply to project-miku [2018-01-27 12:01:33 +0000 UTC]

THANK YOU!!!

πŸ‘: 0 ⏩: 1

project-miku In reply to ArtJournal77 [2018-01-27 16:55:02 +0000 UTC]

No problem!

πŸ‘: 0 ⏩: 0

LRDSocks In reply to ??? [2016-08-31 20:29:38 +0000 UTC]

I have had to deal with this problem many times.Β 
For those like me who have the code all correct, and yet have found it still won't work, this what I found worked for me.Β 

So, far I have found for me:
The code won't work if you copy and paste it, but if you type the code out yourself (no copy paste) then it will work.Β 

πŸ‘: 0 ⏩: 0

briitain In reply to ??? [2016-08-28 02:02:43 +0000 UTC]

id love to know if i can center the text in the featured box on my page ;v;Β 

πŸ‘: 0 ⏩: 0

SwanseaGal In reply to ??? [2016-05-04 17:57:32 +0000 UTC]

I wanted to write a story meaning putting Chapter 1 in the center, but now I can't end it so how do I end it so I can keep the Chapter 1 title centred and everything normal?

πŸ‘: 0 ⏩: 1

TheCrazyCatCow In reply to SwanseaGal [2016-07-05 18:05:13 +0000 UTC]

For anyone else who's wondering, I think you just put at the end. (no spaces)

πŸ‘: 0 ⏩: 0

MilkDudBuddy In reply to ??? [2016-05-01 01:59:48 +0000 UTC]

Love Life

πŸ‘: 0 ⏩: 0

mochiFayy In reply to ??? [2016-04-23 04:44:04 +0000 UTC]

can i center a stamps?

πŸ‘: 0 ⏩: 1

BxbblegumBxtchx In reply to mochiFayy [2016-12-22 02:13:16 +0000 UTC]

you can center anything inside the command/code, i believe c:

πŸ‘: 0 ⏩: 0

Yokonii In reply to ??? [2015-12-13 01:52:01 +0000 UTC]

doesnt work :/

πŸ‘: 0 ⏩: 1

CrescentRose3716 In reply to Yokonii [2016-01-23 00:24:55 +0000 UTC]

did you a space between div and align like this Β 'div align' or not? You have to have the space there in order for it to work... people just put no spaces for when they're next to these '<>'... everything else stays the same on the inside.

πŸ‘: 0 ⏩: 0

xbarebackponiesx In reply to ??? [2015-12-06 03:52:07 +0000 UTC]

testing

πŸ‘: 0 ⏩: 0

WishingUponAsteroids In reply to ??? [2015-07-11 02:42:32 +0000 UTC]

This only works in descriptions of artwork and such, guys.

πŸ‘: 0 ⏩: 0

fumiko-chanfb In reply to ??? [2015-07-09 12:26:27 +0000 UTC]

Testing

πŸ‘: 0 ⏩: 0

Ayamesu In reply to ??? [2015-06-14 21:03:32 +0000 UTC]

Testing Testing 1 2 3

πŸ‘: 0 ⏩: 0

MoontailDraws In reply to ??? [2015-05-24 17:45:04 +0000 UTC]

Testing Testing 1 2 3

πŸ‘: 0 ⏩: 0

A-Rude-Awakening In reply to ??? [2015-05-10 17:59:10 +0000 UTC]

Β 

πŸ‘: 0 ⏩: 0

Fluff-Pal28 In reply to ??? [2015-03-14 02:27:23 +0000 UTC]

I found out!Β < Β div align="center"> No spaces! < Β /div>

πŸ‘: 0 ⏩: 4

Crying-Willow-76 In reply to Fluff-Pal28 [2016-09-17 07:26:16 +0000 UTC]

ily so much tyyyy

πŸ‘: 0 ⏩: 0

Pixelent In reply to Fluff-Pal28 [2016-07-09 02:38:10 +0000 UTC]

ilovEYOU

πŸ‘: 0 ⏩: 0

Crazywolflol In reply to Fluff-Pal28 [2016-06-15 17:09:37 +0000 UTC]

THANK YOU

πŸ‘: 0 ⏩: 0

Genki-18 In reply to Fluff-Pal28 [2015-10-13 21:56:37 +0000 UTC]

It results... Thank you

πŸ‘: 0 ⏩: 0

Prcttyink In reply to ??? [2015-02-22 05:40:24 +0000 UTC]

Testing

πŸ‘: 0 ⏩: 0

Meiinka In reply to ??? [2015-02-14 13:23:14 +0000 UTC]

testing

πŸ‘: 0 ⏩: 0

puppetierd In reply to ??? [2015-01-17 17:58:51 +0000 UTC]

trying


πŸ‘: 0 ⏩: 0


| Next =>