HTML5 Elements Basic Setup


/ Published in: CSS
Save to your folder(s)

This is just a super simple setup for the new HTML5 elements. If you're not using a framework or a reset, then you can paste this into your stylesheet so the new elements will behave as expected.


Copy this code and paste it in your HTML
  1. /* html 5 setup */
  2. article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {display: block;}

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.