4 ms·
you really use the same id twice on a page?! Heresey! Also.. I do the same (essentially: margin: 0 auto) but it works with display: block too, and you don't nee
by mattwad 6y ago
you really use the same id twice on a page?! Heresey! Also.. I do the same (essentially: margin: 0 auto) but it works with display: block too, and you don't need text-align center on the parent.
- bzb3 6y agoIt's not the same id: wrapper vs wrapped
- ChrisMarshallNY 6y agoThey were not IDs. They were indicators of what the div is for. It was sort of HTML-pseudocode. In any case, this is exactly how you center something that doesn't try to stretch across the entire page. It's old-fashioned, but robust. Also, I would generally not use inline CSS. I think of it like I think of !important: the nuclear option. That said, I tend to use inline styles a lot for WordPress site content, because I don't want to deal with the slow-ass "customize" option.