- This topic is empty.
May 4, 2011 at 5:06 pm #32603phette23Member
Any reason why I should avoid this? Or do only as a supplement to the shiv? It seems like, with the right resets, it would work fine but maybe I’m overlooking something. And also: is there a logic to the nesting which makes more sense? Divs on the outside and footer on the inside?
Thanks.May 4, 2011 at 5:17 pm #47357whiteInkDesignMember
The whole point of the new elements is so we don’t have to use divs. You’re essentially doubling the number of elements in your code by nesting divs and negating the purpose the new elements: cleaner and more semantic markup. The js shiv is a simple and clean solution for older versions of IE.
Ok, fair enough. I was thinking that, once my analytics indicated I was above a certain threshold of older IE versions, it would then be easy to strip out every div. But doubling elements and CSS isn’t worth it.May 6, 2011 at 1:55 pm #46866TheDocMember
In my oh so humble opinion, there really is no difference between a div with id=”footer” and the new “semantic” way of HTML5.
The best option would be to start using the new HTML5 doctype and keeping your divs for now. Over time you’ll be slowly able to transfer over.May 6, 2011 at 4:11 pm #46814chrisburtonParticipant
I think it certainly serves a great organized point and would probably help solve a lot of issues and frustration, especially here. I’m not entirely sure on the “best option” as I think that is pure opinion. To stay in the present game, I personally use the new markup.
- The forum ‘CSS’ is closed to new topics and replies.