PDA

View Full Version : HTML 5 decided to change my tag?



baruchM
06-24-2012, 05:27 PM
1) Script Title:
css_shadow_block_menu
2) Script URL (on DD):
http://www.dynamicdrive.com/style/csslibrary/item/css3_shadow_block_menu/
3) Describe problem:
I have put a copy of your css into my external style sheet (with attribution) and
used the html to bring it in using copy paste.
the issue is not with the script, but how html5 browsers (I have checked on safari, chrome and firefox) render it on the page. When I check chrome's tools, it reports that it this is a menu tag rather than a div tag.

I don't know where they are getting that from, as I did not use a menu tag.

Does anyone know what the html 5 browsers are doing that they cause this issue?:eek:
screen shots of what chrome does with this script..
http://uncletoby.net/library/chromereport.png
http://unclcetoby.net/library/whatgoes.png
and the application resides at
http://uncletoby.net/library

jscheuer1
06-24-2012, 06:12 PM
The element inspector image from your post is from either Chrome or Safari. It shows that the tag is in fact a ul tag. It also shows that there is a user agent stylesheet that applies to ul with those styles as listed. The fact that this user agent stylesheet also applies to menu and dir tags is immaterial to the situation.

And it's pretty much immaterial to anything. User agent stylesheets are simply files that browsers use to render elements as the programmers interpret that they should be rendered according to the standards. They rarely interfere with styles that you apply to a page.

And as far as the menu goes, that's the real problem with that page. It doesn't have the CSS3 Shadow Block Menu styles on or associated with it.

I see in your post that you say you added them to your stylesheet, but they're not there. Perhaps you forgot to upload it, uploaded it to the wrong folder or under a different name. Or perhaps your server renamed it. Or, who knows . . . the styles are not in http://uncletoby.net/library/waterfall.css, nor are they on the page, and there's no other stylesheet associated with the page.

baruchM
06-24-2012, 09:12 PM
Sometimes the solution is too obvious to see. Can't see the forest for all those blasted trees in the way...

It helps to save your file before you complain that it won't work......


thanks for the help on this one....

(Also thanks for the really cool script. I need to make a couple adjustments and it is going to look so cool)