You are viewing a single comment's thread from:

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

in UX/UI design4 years ago (edited)

@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.

Sort:  

Nothing to say sorry for. Thank you very much for getting back at me with a really helpful answer. I will try that with the next post. 🥳

Really beautiful, I just realized that depending on which command you use and how you use it there are problems that are not mentioned anywhere. For example if you don't leave a blank line there are formats that are incompatible when you don't leave that space, in editing it is as if both formats are on the same line and for some reason it gives error.

For example, having the text justified and additionally creating a separator line below the paragraph. This is just an example, really, I can't remember which format gave me that problem.


Depending on the formatting of the text above when using the 3 dashes it does not create a line but displays them like this (---) or makes the whole text have a Heading format.



For example, in this case if I don't use a line between the text and the command (---) it makes the text have a bigger font than a normal text (I have to say that visually it is annoying, but I leave it as a sample).

Captura.PNG

Also interesting are the reasons why you don't use "justify text" in web sir. I love justified texts, but those white spaces (rivers) that are in some paragraphs that are justified, bother me a lot visually, but I think it's something personal, I hope it's nothing serious for me hehe.

Thank you very much for the two articles and for the questions section.

Translated with www.DeepL.com/Translator (free version)