8bitOrange

  • Archive
  • RSS
  • Ask me anything

HTML5 for the lazy

Are you building in HTML5? Are you lazy? Here let me help you with something:

header, section, aside, footer { display: block; }

Your welcome, it annoyed me for about 15 min today before I realized that none of the new elements are turned on as block level elements in most (if not all, again I’m lazy, didn’t really look) browsers.

Supposedly this will be changed soon, but until it is, just throw that in at the top of your css and you’ll blissfully forget. You could include nav and article in there, but some people may not want to lay those out as block elements.

    • #html
    • #web dev
    • #code
  • 2 years ago
  • 2
  • Permalink
  • Share
    Tweet

2 Notes/ Hide

  1. 8bitorange posted this
← Previous • Next →

About

I'm a nerd lost on the internet. I build things with code and write things with words. Fork me on GitHub

Pages

  • I am Matt Caron and I am addicted to the internet
  • Code Blog
  • Resume
  • Stack Overflow
  • My Photography
  • Nerd Appropriate
  • I'm Google-able

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Ask me anything
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr