On 5/08/2009, at 11:43 AM, Brian Ogden wrote:

> I have the following class in my site wide css file:
>
> select.formCell
> {
>    background: #cfcfcf;
>    border: 1px solid black;
> }
>
> These styles are being applied to select elements on my entire site,  
> not
> just those with the class="formCell" attribute.
>
> This is very perplexing, I am testing in Firefox 3.5.

Hi Brian  - The best way to get help is to post a URL that way we can  
see the problem in context. i.e. How this relates to the markup and to  
other rules that may be in play. The first thing I normally do is  
validate the HTML and CSS to make sure that this isn't causing the  
browser to barf.

 From looking at your snippet, you may want to try the more specific  
'background-color'. Your 'background' may be being over-ridden by  
'background-color' in another declaration.

Also, have a look at http://css-discuss.incutio.com/?page=FormElements  
for some information about what can and can't be done reliably with  
form elements.
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to