css - descendant selectors

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I am using IE 6.0
I set up what I thought was a descendant selector but it will not work. I
think perhaps I have misunderstood the concept and hope someone might
enlighten me.
I am trying to change the background color of a particular select element
which is contained within a division classed as 'base' .
Outside this div I have other select elements that I do not want changed.

My css contains :
base  select {  background-color: #5b6e84;  color:#FFFFFF; }

My html contains :
<DIV class="base">
  <form id="form1" method="post" action="<?php echo $PHP_SELF ?> ">
     <DIV id="contacts">
         <select  name="contactID" id="contactID" size="28"  >
                <option >....


Re: css - descendant selectors

Alliss wrote:
Quoted text here. Click to load it

Should have a fullstop before base to indicate that it is a class:

.base select {  background-color: #5b6e84;  color:#FFFFFF; }

Re: css - descendant selectors

Quoted text here. Click to load it

Thanks Nik

Site Timeline