Hacker News new | ask | show | jobs
by TylerJay 4121 days ago
> Patients that switched from Bootstrap to Min reported up to a ninefold decrease in markup

hehe.

Actually though, as someone who learned CSS with the rule "Use Divs! No Tables!" What does a page with less divs even look like? What are the workhorses for page layout?

1 comments

That rule is good. Using divs normally is fine. However, it is possible to overuse divs. Sometimes you'll have a div nested inside a div (and so on) six levels deep. That's considered bad.

For example, <div id="div-holder"> <div id="inner-padding-div"> <div id="right-align-div"> <div id="centering-div"> <div id="actual-content">

is bad - you could reduce that to one or two divs at most.

Gotcha. Thanks!