+ 1
Why sometimes text-align doesn't work?
Hi, I was coding a website today and I have a problem: When I give an id to a paragraph or a heading, and in CSS type text-align:center, it doesn't work.
3 ответов
+ 11
You can't center a div with that instruction but you can center a paragraph inside the div by using text-align.
If you could share your code it would be easier to help you. :)
+ 6
text-align only work on block element, it would not work if the elements set to inline.
+ 1
It depends on code. May be there inline styles can be Overriding it...