News for hackers. Stuff that matters.

Must have CSS for HTML5 + Firefox

header, section, article, hgroup, aside, footer, nav { display: block; }

This tripped me up the first time I made an HTML5 page while developing in chrome.. switching to Firefox everything looked messed up.

Just a tip for those of you considering switching or starting a new HTML5 site.

( 4 comments | 3 points | on HN )
Re:Must have CSS for HTML5 + Firefox by rubyskills on Wednesday February 23, 2011 @09:16AM (#2254113)
We're building our application HealPay in HTML5 so if you want to see a real HTML5 site in action, check back with us soon. Posted on HealPay on HN:

http://news.ycombinator.com/item?id=2252214

Re:Must have CSS for HTML5 + Firefox by BallinBige on Thursday February 24, 2011 @05:55PM (#2260202)
ubercool
Re:Must have CSS for HTML5 + Firefox by miloco on Wednesday February 23, 2011 @11:18AM (#2254585)
Have you tried it in IE :P
Re:Must have CSS for HTML5 + Firefox by rubyskills on Wednesday February 23, 2011 @11:41AM (#2254707)
No yet :)

Evidently if you use html shiv, you should be able to support ie6+