Skip to main content
Main Content

Can't center in forum topic?

Can't center in forum topic?
Posted 2021-01-26 13:19:36

Sorry to bother, but I'm having a weird time writing a topic on the forum, the center alignment doesn't work, it just defaults back to left alignment?

Also, I typically do shift-enter to start a new line without starting a whole new paragraph, like to only use half the space that pressing enter uses, and that doesn't work either? I've actually never seen it not work before, so I'm a little stumped!


Venom Mom
#17213

Posted 2021-01-26 17:53:20

Preview view is kinda broken with some things. Go to code view and use this:

<div style="text-align: center;">Your text here.</div>

And for the spaces, in code view, use <br> for a new line (br being a "line break").


fireflii
#757

Posted 2021-02-03 18:08:32 (edited)

This is absolutely not working for me, with code or without it.
The code seems to vanish every time I press edit and return to it.


Hohtis
#25646

Posted 2021-02-03 19:51:35
Make sure you're in code view and not preview view. And yes, if you submit the edit, then come back to it later, the code disappears again. That's Wolvden, not the code.

fireflii
#757

Posted 2021-02-03 19:59:13 (edited)

Yeah, I had the exact line in the code view and it did nothing, but for some reason this works with the editor now? Still having issues with my own (already created) threads though. I feel like I have to be doing something wrong lmao.

For example, adding your bit of code into my last message does absolutely nothing for some reason?
Code that worked for me was <p style="text-align:center;">text</p>


Hohtis
#25646

Posted 2021-02-03 20:48:38

That makes more sense. Depending on what coding you use, some aren't compatible or must go in a certain order. For example, you CAN put a div tag inside a div tag (inside a div tag, inside a div tag inside... etc.), but you CAN'T put a div tag inside a p tag or a span tag. A lot of people make their forum layouts with span styles or p styles from what I see, so if yours is like that, the div style wouldn't work.

[And just to add, in your case, it sounds like you would have to use a p style inside your layout may be made with p style? Span elements don't support text alignment at all since they're inline elements and not block elements.]


fireflii
#757

Posted 2021-02-03 20:52:36

Thanks for the reply (and help) !
I didn't really have any actual coding to begin with, I just used the editor to make some really basic stuff but the center still didn't wanna work on that. But turns out the editor mostly makes p tag stuff then, I assume?


Hohtis
#25646

Posted 2021-02-03 20:59:26

Yeah, so if you type something in the preview view (which is the default view when you make a post/reply), then check the code view (you don't have to post it), everything is in p tags.


fireflii
#757

Search Topic