Maisara-WD Posted July 17, 2008 Share Posted July 17, 2008 Hi guysI've a small questionI've completely understood how to do this, but it doesn't work with me,,, why???I wrot:input [type=text]{background-color: red}and it didn't work, this example is the same with the w3 one'scan u help??thanx Link to comment Share on other sites More sharing options...
Ingolme Posted July 17, 2008 Share Posted July 17, 2008 Well, first remove the space between input and [type=text]. It's most likely interfering.Aside from that, I'm pretty sure that Internet Explorer 6 doesn't support that kind of selector. And I'm not sure about Internet Explorer 7. Link to comment Share on other sites More sharing options...
elementalgrace Posted July 18, 2008 Share Posted July 18, 2008 Well, first remove the space between input and [type=text]. It's most likely interfering.Aside from that, I'm pretty sure that Internet Explorer 6 doesn't support that kind of selector. And I'm not sure about Internet Explorer 7.Should this work in the other non IE browsers? I have been having a massive problem with checkboxes and it would be really helpful if this at least worked for them. Link to comment Share on other sites More sharing options...
Maisara-WD Posted July 18, 2008 Author Share Posted July 18, 2008 Thanx dear IngolmeI've got IE7 on my PCCan u get sure if it works with IE7 or not,,??I've removed the space, but still no waywaiting for ur replyyoursMaisara Link to comment Share on other sites More sharing options...
Ingolme Posted July 18, 2008 Share Posted July 18, 2008 I did some tests and the results are that it won't work in Internet Exporer 7 unless running in Standards Compliant mode.This means you'll have to put a correct DOCTYPE delcaration on your page (HTML or XHTML Strict is my recommendation). And make sure your page is valid (X)HTML. Link to comment Share on other sites More sharing options...
Synook Posted July 19, 2008 Share Posted July 19, 2008 Should this work in the other non IE browsers?It will work in all modern non-IE browsers Link to comment Share on other sites More sharing options...
jeffman Posted July 19, 2008 Share Posted July 19, 2008 modern non-IE browsersStop repeating yourself Link to comment Share on other sites More sharing options...
Synook Posted July 19, 2008 Share Posted July 19, 2008 lol :)Well it won't work in Lynx! Link to comment Share on other sites More sharing options...
Maisara-WD Posted July 19, 2008 Author Share Posted July 19, 2008 Ok guysdear ingolme, I'm sorry but I couldn't get uI understood that I should use sutible doctype, (Unfortunately I still can't do it), is that right??I'm tiring u with my silly questions, Sorry..thanx Link to comment Share on other sites More sharing options...
jeffman Posted July 19, 2008 Share Posted July 19, 2008 Paste one of the following into the very top of your document, before any tags. This tells your browsers that your markup should be interpreted as strictly following the rules. Then, to make sure your code really is strict, use this service to validate it. http://validator.w3.org/<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> Link to comment Share on other sites More sharing options...
Maisara-WD Posted July 19, 2008 Author Share Posted July 19, 2008 Thanks mr Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.