7 posts
  • Bought between 1 and 9 items
  • Has been a member for 4-5 years
HypnoNinja says

Hello! I have discovered a problem with <section id="" /> and trying to set Height.

I have probably missed something of importance, but maybe someone could help.

Here is an example:

<!DOCTYPE html SYSTEM> <head> <style> #test { height: 100px; } </style> </head> <body> <section id="test">Demo, I hope this works.</section> </body>

Now, this does not set the height at all. I have seen ID’s within SECTION that work with other css attributes, but not height. Obviously if I change SECTION to DIV its fine, so…how can this be fixed?

Im almost certain, its something simple and I’ll end up with egg on my face. Thanks for reading, any help would be appreciated.

3196 posts
  • Sold between 5 000 and 10 000 dollars
  • United States
  • Bought between 10 and 49 items
  • Has been a member for 4-5 years
  • Exclusive Author
organicbee says
Hello! I have discovered a problem with <section id="" /> and trying to set Height.

I have probably missed something of importance, but maybe someone could help.

Here is an example:

<!DOCTYPE html SYSTEM> <head> <style> #test { height: 100px; } </style> </head> <body> <section id="test">Demo, I hope this works.</section> </body>

Now, this does not set the height at all. I have seen ID’s within SECTION that work with other css attributes, but not height. Obviously if I change SECTION to DIV its fine, so…how can this be fixed?

Im almost certain, its something simple and I’ll end up with egg on my face. Thanks for reading, any help would be appreciated.

whats with the SYSTEM in the doc type?

and

section#test{height: 100px; display: block;}
68 posts
  • Bought between 1 and 9 items
  • Canada
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 1 000 and 5 000 dollars
iamfriendly says

All ‘new’ HTML5 elements need a display: block; on them at the moment – the spec is still a bit shiftable and so the browser vendors are a little unsure of how these elements should be displayed. Your best bet is to try a HTML 5 CSS Reset combined with Remy Sharp’s shiv:

http://html5doctor.com/html-5-reset-stylesheet/

and

http://remysharp.com/2009/01/07/html5-enabling-script/

Hope that helps!

4335 posts
  • Beta Tester
  • Bought between 10 and 49 items
  • Community Moderator
  • Contributed a Blog Post
  • Contributed a Tutorial to a Tuts+ Site
  • Exclusive Author
  • Grew a moustache for the Envato Movember competition
+6 more
Reaper-Media Volunteer moderator says

Changed thread title to make it forum friendly :-)

499 posts
  • Canada
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Has been a member for 5-6 years
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
TutelageSystems says

whats with the SYSTEM in the doc type?

It has something to do on the type of the file (private / public).. thats all i know about that :)

http://en.wikipedia.org/wiki/Document_Type_Declaration#DTDs

7 posts
  • Bought between 1 and 9 items
  • Has been a member for 4-5 years
HypnoNinja says

Thank you all for the info ( and correct forum title ). I will give the ideas a shot and update when I can :)

PS: The “section” was a mistake ;)

by
by
by
by
by
by