View Single Post
Old 10-02-2012, 08:49 PM   PM User | #10
Sammy12
Registered User

 
Join Date: Jun 2011
Posts: 1,063
Thanks: 12
Thanked 241 Times in 240 Posts
Sammy12 is on a distinguished road
On line 32 of my_css.css:

Code:
<!-- Change background colors and text alignment and colors on text and password boxes -->
input[type="text"] {
	background-image: url('site_graphics/seamless_green.jpg'); 
	color: #000000; 
	font-family: Verdana, Arial, Helvetica, sans-serif; 
	text-align: left;
}
The red part is causing the problems, you need to delete it. That is an HTML comment, CSS comments are like this:

Code:
/* Change background colors and text alignment and colors on text and password boxes */
Quote:
Originally Posted by DanInMa View Post
most likely the browsers you are testing in don't support that type of selector.
Any reason you cannot assign a class to the inputs instead?
The attribute selector works in all browsers including IE7. http://reference.sitepoint.com/css/c...ibuteselectors

I would suggest sticking with the selectors, they are more semantic. Instead of copy and pasting the same code use:

Code:
input[type="text"], input[type="password"] {
    background-image: url('site_graphics/seamless_green.jpg'); 
    color: #000000; 
    font-family: Verdana, Arial, Helvetica, sans-serif; 
    text-align: left;
}
You can use classes like stated above if you like, just know that it won't change anything. I would however recommend removing any !important's.

Last edited by Sammy12; 10-02-2012 at 09:01 PM..
Sammy12 is offline   Reply With Quote
Users who have thanked Sammy12 for this post:
hans_cellc (10-02-2012)