Re:How to Center in CSS (2015)
by mrweasel on Tuesday May 19, 2020 @11:28AM
(#23235901)
I just throw a <center> in, it works well enough for most cases.
[ Parent
| on HN ]
I prefer <center style="text-align: center;"> for maximum centeredness
<center class="center1 ct cen algn" id="center42" style="text-align: center; margin-left: auto; margin-right: auto;">
I love that
Re:How to Center in CSS (2015)
by RyanGoosling on Tuesday May 19, 2020 @11:34AM
(#23235973)
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ce...
The <center> element is obsolete and is not in the HTML5 spec...
So? The browser doesn’t care.
You’re right of cause and centering is styling and it doesn’t belong in the html. It just that sometimes I really can’t be bothered with css and the center hr and a ton of br slips in, and it works well enough.