7 posts
  • Has been part of the Envato Community for over 4 years
  • Has collected 1+ items on Envato Market
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.

3247 posts
  • Has sold $5,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in United States
  • Has been part of the Envato Community for over 4 years
+1 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
  • Has been part of the Envato Community for over 4 years
  • Has sold $1,000+ on Envato Market
  • Located in Canada
  • Has collected 1+ items on Envato Market
+1 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
  • Has been part of the Envato Community for over 6 years
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+10 more
Reaper-Media says

Changed thread title to make it forum friendly :-)

499 posts
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Located in 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
  • Has been part of the Envato Community for over 4 years
  • Has collected 1+ items on Envato Market
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