RE: RE: Make you post easier to read. Get more upvotes!
You are viewing a single comment's thread from:

RE: Make you post easier to read. Get more upvotes!

Words
170
Reading
1 min
Listen
Play
5y

ninki.vienna@ninki.vienna Sorry for the late reply, had no time resource time to check and find why < center> tag bugs.
I was able to recreate what you are describing. It is dependent of lines with blank spaces.
If you put both center tags in a single line it works fine just like that.

centered test text

uncentered test text


You can also use center in multiple lines, but you should never leave a empty line. Example:

centered text
another line of centered text
Third line of centered text

Uncentered text


And leaving just a single empty line produce a BUG and everything below gets centered

for example

< center>
line of text
⠀
second line of text with blank line above
< /center>
Uncentered text

This example would make all the text centered, even the "uncentered text" below the closing tag.


You can fix this with a < div>

< div class="text-center">
test line 1

test line 2
< /div>
uncentered line outside of div

To make the above example work, remove the blank space from the opening and closing div tags.

@brutalisti: @ninki.vienna | Ecency