7 posts
  • 5 Years of Membership
  • Collector Level 1
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.

3439 posts
  • Author Level 4
  • Collector Level 2
  • Community Superstar
  • United States
+2 more
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
  • 5 Years of Membership
  • Author Level 3
  • Canada
  • Collector Level 1
+3 more
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
  • 6 Years of Membership
  • Affiliate Level 1
  • Author Level 3
  • Beta Tester
+11 more
Reaper-Media
says

Changed thread title to make it forum friendly :-)

499 posts
  • Affiliate Level 1
  • Author Level 3
  • Collector Level 2
  • Canada
+2 more
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
  • 5 Years of Membership
  • Collector Level 1
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