Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS ‘DRY’ HTML vs OOCSS Approach? Better to have less HTML or CSS code? Re: ‘DRY’ HTML vs OOCSS Approach? Better to have less HTML or CSS code?

#128577
CrocoDillon
Participant

I like to keep markup and style as separate as possible, so semantic html elements and classes as style hooks, option 2. What’s the point keeping markup and style separate if you end up with classes like `.float-left` or `.bottom-border-10px`, might as well use inline styles.