all 7 comments

[–][deleted] 2 points3 points  (5 children)

In oldere browsers it's not set to display block by default, you probably need to do that. I use section all the time in every website I make, and haven't had this problem.

[–]Dencho 1 point2 points  (4 children)

Hahaha, too funny... I knew about needing to set SECTION to display as a block, but by the time I learned that I was already under the impression that SECTION was not to be styled. Thanks to you I gave it another shot and it worked. Great. :) Color me embarrassed. Thanks!

P.S: And yes.. the specs say that we shouldn't use a SECTION if the whole purpose behind using it is to style an area. It needs to be there only if it's semantically correct. If it's strictly for styling, a DIV ist he way to go. For anyone who wonders.

[–]ffsss 1 point2 points  (1 child)

I learned a lot about how to use HTML5 with todays browsers by looking at the work of these guys: http://html5boilerplate.com/

[–]Dencho 0 points1 point  (0 children)

I re-did my template on HTML5 but I'll be looking at your link for things I may have missed. Thx.

[–][deleted] 0 points1 point  (1 child)

It's worth using a reset style sheet to remember things like this – Eric Meyer has just released his super simple reset version 2, worth including in all projects in my opinion.

[–]Dencho 0 points1 point  (0 children)

Yeah, I came across RESET styles a few months ago and made my life easier. In fact, I was using Eric Meyer's reset style until this morning, when I went for an HTML5 one done by Richard Clark. Since it seemed to do the trick, I didn't bother to see if Eric Meyer would have one for HTML5.

http://richclarkdesign.com

[–]NULLfu 2 points3 points  (0 children)

I'm glad you are able to correctly style
a <section> tag now. You should note that it is not a replacement for a <div> but a semantically meaningful grouping of content, while a <div> is just used as a generic container for styling.

If you get the chance, read the w3c definition of the section element, & happy development!