HOME | DD

jostef β€” How do i center a text?
Published: 2010-05-24 17:22:58 +0000 UTC; Views: 46707; 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

SxgarWaffles [2020-03-23 11:43:36 +0000 UTC]

deviant art better fix this. sadly i have no idea either, but i hope we will figure it out

πŸ‘: 1 ⏩: 0

MysticalSorcery [2019-10-23 18:19:26 +0000 UTC]

This was working for my deviantID for awhile, but then it decided to suddenly not work and everything on it was to the side again. I used the code ((and I have used it for everything else)) but now, it decided to have a stroke

πŸ‘: 1 ⏩: 0

Doukz [2019-09-21 02:31:31 +0000 UTC]

oops sorry if this is too old to be commenting on, but no longer centers the whole journal for me, even if I try to put <_/div> later on the journal to give it an idea where to stop at.

Instead it only centers one line, and I have to add this code over and over again when it used to work like a charm.

kinda blaming it on eclipse since it started around the time of it booting up

πŸ‘: 1 ⏩: 0

LoudestJellyFish [2019-06-23 00:59:30 +0000 UTC]

align="center"> this is the new oneΒ 

πŸ‘: 1 ⏩: 1

Sivitzie In reply to LoudestJellyFish [2019-08-10 06:10:01 +0000 UTC]

doesnt seem to work for me

πŸ‘: 0 ⏩: 2

LoudestJellyFish In reply to Sivitzie [2019-09-02 22:07:03 +0000 UTC]

well heck, im sorry frien

πŸ‘: 0 ⏩: 0

CrossesNBatwingz In reply to Sivitzie [2019-08-17 14:00:22 +0000 UTC]

itsΒ <.div align="center"> and then another <./div> at the end, dont use the periods at the beginningΒ 

πŸ‘: 0 ⏩: 1

Sivitzie In reply to CrossesNBatwingz [2019-08-17 14:04:02 +0000 UTC]

tried that, sadly it didnt work

πŸ‘: 0 ⏩: 1

CrossesNBatwingz In reply to Sivitzie [2019-08-17 16:05:35 +0000 UTC]

here, im doing myself for an adopt!Β 

πŸ‘: 0 ⏩: 1

GAMERSTYLE73 In reply to CrossesNBatwingz [2019-09-09 03:53:37 +0000 UTC]

oh hello! Replying to you since I want to mention this only works for journals. Doesn't seem to work for deviations / art posts





(yes I need to center some text and that's why I is here)

πŸ‘: 0 ⏩: 1

CrossesNBatwingz In reply to GAMERSTYLE73 [2019-09-09 12:23:03 +0000 UTC]

Werid?? It works for my posts :0

πŸ‘: 0 ⏩: 0

howlkins [2019-06-09 00:19:34 +0000 UTC]

the standard center command is no longer supported on most browsers, it is considered obsolete (commenting this since a lot of ppl are suggesting that)
and also div align is css coding, i am fairly certain image descriptions only support basic html (dependent on if you're a core user as well, i believe), not css.
css is only supported in custom boxes
idk what ppl use now to get text centered. i've gotten it to work by going into google docs and centering the text there and copy/pasting

πŸ‘: 1 ⏩: 0

pebloon [2019-04-23 21:19:35 +0000 UTC]

can you center text on da id's? I know you've been able to in the past but it's not letting me?

πŸ‘: 0 ⏩: 2

kqyo In reply to pebloon [2019-04-24 08:49:33 +0000 UTC]

Just had this issue but on the featured deviation-I copy pastedΒ 

Β 

And removed rhe _ and replaced it with a space
it seemed to work fine, I’m wondering if it’s something to do with the quotation marks because when I tried to type it out myself they were slanted, while the ones I can copy paste are perfectly vertical- anyway I hope this helps

πŸ‘: 0 ⏩: 1

pebloon In reply to kqyo [2019-04-24 12:26:41 +0000 UTC]

that's the one i've tried but it strangely doesn't work?Β 

πŸ‘: 0 ⏩: 1

kqyo In reply to pebloon [2019-04-24 18:46:53 +0000 UTC]

Maybe replace div with p

usually if the β€œβ€ are slanted it doesn’t seem to want to work?Β 
Its really weird- deviantart is breaking I swear and it sucks because this is the only social media I want/haveΒ 

πŸ‘: 0 ⏩: 1

pebloon In reply to kqyo [2019-04-24 21:37:24 +0000 UTC]

tried that too, doesn't work either for me.. really is and it is a shame,
especially since i don't want to get a core membership

πŸ‘: 0 ⏩: 1

kqyo In reply to pebloon [2019-04-24 21:40:13 +0000 UTC]

Weird-Β 
Sorry it ain’t working, maybe at a different time? Idk what’s happening tbh this site Β so wack (blame eclipse-)

πŸ‘: 0 ⏩: 1

pebloon In reply to kqyo [2019-04-24 21:52:00 +0000 UTC]

yeah.. hopefully it will! who knows!Β 

πŸ‘: 0 ⏩: 0

Cynlcai In reply to pebloon [2019-04-24 01:44:58 +0000 UTC]

wondering the same thing..

πŸ‘: 0 ⏩: 0

TragicMoppet [2019-04-22 22:57:19 +0000 UTC]

For me the worked (with a space for the _ ) after a few tries? Seems to be hit or mis for this one :I

πŸ‘: 0 ⏩: 0

Lurisity [2019-04-20 12:21:11 +0000 UTC]

The center text command isn't working? I've tried the

CONTEXT and

but neither work. Is it different for a PC or MAC, or is the coding the same?ο»Ώ

πŸ‘: 0 ⏩: 1

TragicMoppet In reply to Lurisity [2019-04-22 22:52:08 +0000 UTC]

both work the same since it's an online site !Β 

πŸ‘: 0 ⏩: 0

Doggutsz [2018-12-16 18:23:32 +0000 UTC]

Looking in the comments helped me a lot, thanks!

πŸ‘: 0 ⏩: 0

PoolTableN64 [2018-11-19 04:53:19 +0000 UTC]

How do you do it in a description of an art post??

πŸ‘: 0 ⏩: 0

puppytoys [2018-10-06 15:41:04 +0000 UTC]

Hey! I’m having a problem using this, can someone help? I have tried using it with even just text but it still doesn’t work even when I copy and paste what you guys said works:

CONTENT


But but when I put in the content and save it it just looks like this:

see it don’t work

πŸ‘: 0 ⏩: 1

Maripolifan In reply to puppytoys [2018-10-14 02:19:31 +0000 UTC]

Apparently, it's different now. You have to use now (replace the underline with a space)

πŸ‘: 0 ⏩: 5

Cynlcai In reply to Maripolifan [2019-04-24 01:50:16 +0000 UTC]


thanks for the info

πŸ‘: 0 ⏩: 0

Beeroxxx In reply to Maripolifan [2019-03-31 06:29:20 +0000 UTC]

I'm using this, but instead of centering it, it actually gives me a line break?Β  Did it change again?

πŸ‘: 0 ⏩: 1

Maripolifan In reply to Beeroxxx [2019-03-31 22:20:06 +0000 UTC]

Not to my knowledge, honestly

πŸ‘: 0 ⏩: 1

Beeroxxx In reply to Maripolifan [2019-03-31 22:30:20 +0000 UTC]

Strangely enough, it works with this, but only WITHOUT the < / div >Β  at the end?? (Sorry for spaces, but it wouldn't take it otherwise)Β Β 

CONTENT

πŸ‘: 0 ⏩: 1

Maripolifan In reply to Beeroxxx [2019-03-31 23:34:32 +0000 UTC]

It's not "div align", it's "p align". That "div" stuff never worked for me either-

πŸ‘: 0 ⏩: 1

Beeroxxx In reply to Maripolifan [2019-03-31 23:49:39 +0000 UTC]

No, when I use "p align" it gives me a page break, as I've mentioned before.Β  The whole div align thing only works if I drop that div at the end (close) of whatever I want centered.Β  Yes it's weird, if I put it in front of a paragraph, it will only center that one paragraph, and I've read that it will center everything unless you put the < div > at the end of where you want it to stop, but in reality it didn't center everything for me, it only centered the one paragraph where I put it on. I'm guessing it seems to work differently for different people, might have something to do with the DA version you run, or which Windows you run or something else.Β  Β Β 
I worked from this link:Β Β deviantart.zendesk.com/hc/en-u…

πŸ‘: 0 ⏩: 1

Maripolifan In reply to Beeroxxx [2019-04-04 15:52:03 +0000 UTC]

I have experienced the same with the p align thing. It only works on one paragraph at a time, but you can always copy & paste it.
Do you have DA Eclipse? Maybe it doesn't work correctly with that version, but idk

πŸ‘: 0 ⏩: 1

Beeroxxx In reply to Maripolifan [2019-04-04 22:22:39 +0000 UTC]

Yes I do have Eclipse, but since I've only been a core member for all of 2 days, I still haven't even looked at Eclipse...lol.Β  Still trying to figure out the current system..

πŸ‘: 0 ⏩: 1

Maripolifan In reply to Beeroxxx [2019-04-09 22:35:41 +0000 UTC]

I know it might sound weird, but have you tried it on your smartphone, too?

πŸ‘: 0 ⏩: 1

Beeroxxx In reply to Maripolifan [2019-04-10 03:04:16 +0000 UTC]

No, I don't use DA on my phone....I can't be bothered with it on my phone.Β  Not to worry, I got it centered, even though it's done differently to what has been suggested.Β  Thank you though Β 

πŸ‘: 0 ⏩: 1

Maripolifan In reply to Beeroxxx [2019-04-10 18:12:39 +0000 UTC]

No problem, though, how did you do it?

πŸ‘: 0 ⏩: 1

Beeroxxx In reply to Maripolifan [2019-04-10 20:58:08 +0000 UTC]

CONTENT

πŸ‘: 0 ⏩: 0

KazerOnDA In reply to Maripolifan [2018-12-21 14:38:18 +0000 UTC]

aaa thank you!!! I was wondering why other versions weren't working lol

πŸ‘: 0 ⏩: 0

6Stain9 In reply to Maripolifan [2018-12-05 00:33:24 +0000 UTC]

Thank you!

πŸ‘: 0 ⏩: 0

puppytoys In reply to Maripolifan [2018-10-14 12:50:39 +0000 UTC]

Ah yea I figured that out a lil while ago, but thanks anyways!

πŸ‘: 0 ⏩: 1

Maripolifan In reply to puppytoys [2018-10-14 18:02:30 +0000 UTC]

Yeah, though you need to dig a little to actually find that lol

πŸ‘: 0 ⏩: 1

puppytoys In reply to Maripolifan [2018-10-14 18:04:52 +0000 UTC]

Yup loll

πŸ‘: 0 ⏩: 0

dysIexia [2018-06-28 18:52:42 +0000 UTC]

CONTENT

πŸ‘: 0 ⏩: 0

Kiramera [2018-06-09 03:58:41 +0000 UTC]

Could I get some help?
This coding format worked for me before, and I was able to center text on my deviantID.
However while doing some renovations I accidentally deleted all of my description, and now I can no longer center the text.
I've tried every other method mentioned in this comment section, but it still won't work (it still stays to the right).

πŸ‘: 0 ⏩: 2

Nyanganronpa In reply to Kiramera [2018-07-15 00:44:04 +0000 UTC]

Hi there, I don't suppose you could tell me how you fixed the problem? c:

My deviantID text isn't centering either- I remember having this problem at one point before, but I don't remember how I fixed it.

Anyway, I'd love some help with this!

πŸ‘: 0 ⏩: 1

Kiramera In reply to Nyanganronpa [2018-07-16 21:12:39 +0000 UTC]

Sure thing! I've actually had someone define the problem for me before, so I'll quote it here:

" The code is still < div align="center" > (but without the spaces), but the reason it won't go across the whole widget space is you have to have a line of text that's big enough to take up the whole space.Β 


If you write a line of text that is big enough to take up the whole space, it'll center the text. If you don't want a huge line of text, you could probably achieve the same effect by making a transparent .png file that's long enough to stretch across the whole widget. "

Hope it helps!

πŸ‘: 0 ⏩: 1

Nyanganronpa In reply to Kiramera [2018-07-18 19:35:41 +0000 UTC]

Ahh, that makes sense! I had a really big image in my deviantID before,

I couldn't for the life of me figure out why it wasn't centering anymore!


Thank you so much! c:

πŸ‘: 0 ⏩: 0

0rganic-Trash In reply to Kiramera [2018-07-02 20:18:41 +0000 UTC]

hi! did you manage to fix it?

πŸ‘: 0 ⏩: 1


| Next =>