Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@computerlove Try to use flexbox or CSS grid:
- Flexbox https://css-tricks.com/snippets/...
- CSS Grid https://css-tricks.com/snippets/...
Both will make your life wayyyyy easier. -
Because HTML is not a layout language. Web devs abuse it for this purpose for the lack of alternatives.
-
@ericprog It takes some practice to know here you need to add a totally non-semantic wrapper element to make writing the required CSS easier or even possible...
-
@theabbie we'll just copypasta yours if that's ok. Thanks. OP got an A on this assignment.
WHY IS IT SO HARD TO CENTER A DIV
rant