Hi all,
Any help would be great. It's hard to find good info on strict css; well for me anyway![]()
Whats wrong with the below code? Anything?
Code:.skin0{ position: absolute; cursor: default; z-index: 50; visibility: hidden; }
Hi all,
Any help would be great. It's hard to find good info on strict css; well for me anyway![]()
Whats wrong with the below code? Anything?
Code:.skin0{ position: absolute; cursor: default; z-index: 50; visibility: hidden; }
No, nothing, although you might want to insert a space before the {: I think there's a bug that occasionally affects one of the earlier versions of IE if you don't.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
How the hell do you know stuff like that!![]()
Thanks anyway.
Its actually part of a bigger problem, but I didn't want to bog anyone down with my stupidity.
I just changed to a strict web page and I'm having problems.
Any help as to why my right-click menu doesn't work?
Does strict also apply to javascript?
Know any decent references for strict authoring?
Thanks
Changed to strict from what? Transitional or quirks? DOCTYPE does affect javascript. One of the two most common ways is that you may be required to specify units for pixels in about any DOCTYPE, also the way IE gets the body element in certain scripting situations changes when changing from quirks to a valid DOCTYPE.
Differing DOCTYPE's will cause markup to render differently in many cases. Where javascript is dependant upon markup, this can mess up a script.
Additionally, anything that is invalid in a given DOCTYPE, whether it is hard coded or created by a script can cause problems.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Thanks for the pixek thing. As fir the rest i will work through my code and sort it out (I went from transitional)
If you use a DOCTYPE, use the w3c validator to check it. It will tell (mostly) what's wrong and about where to find it on your page:
http://validator.w3.org/
- Mike
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Not erroneous. The things the validator reports are indeed invalid.can often generate erroneous error reports for on page scripts
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Not for on page scripts. It will erroneously report that tags which are 'not open' are being closed. However, since these tags are themselves within script tags, they are not tags, they are code. Or, if looked at as the strings that they are, usually do have opening tags that the validator is ignoring. Either way it is a goof of the validator.
This is why scripts generally should be made external for validation.
- John________________________
Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate
Bookmarks