Category Archives: Web Design

Quick Reference on HTML5 for IE8

EDIT: Just found another better solution: HTML5 Shiv, a JavaScript library that will accomplish the below with a simple <link> script.

Just realized now that IE8 does not recognize some of the new semantic tags in HTML5. This website explains a good workaround:

Add this to <head>:

<!--[if lt IE 9]>
<script>
document.createElement('header');
document.createElement('nav');
document.createElement('section');
document.createElement('article');
document.createElement('aside');
document.createElement('footer');
document.createElement('hgroup');
</script>
<![endif]-->

Add this to CSS:

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

Since IE8 seems to be the new “least common denominator” in web design since it’s the oldest and least standards compliant web browser with a market share above 0.5 percent, this is good to know. Thank you, Windows XP work computer, for the notice!

Forays into CSS3, Part 1

I’m currently working to refresh my CSS skills. It’s been an interesting process thus far. CSS is a very powerful computer language that has given web designers a huge level of control over the presentation of web content, and it’s only grown more powerful in the many years since it has been introduced. I wrote my first webpage an eternity ago, back when CSS support was spotty among web browsers and the only thing I really used CSS for was to create mouseover effects with a:hover. It’s amazing how far the web has come since then.

I’m going to use this post to list some of the CSS resources I’ve found online that may come in handy later.

Books to look up

  • Mobile First / Introducing HTML5 (Bruce Lawson, SHarp)
  • CSS3 Visual Quickstart Guide
  • Stunning CSS3 – A Project Based Guide