On 15/09/2006 12:55, Bevan Christians wrote:
> Is there any particular reason for this?
> 

It seems to me that if you adjust the width of #slider_track to 
something lower (like 75px) it sits back up in the middle, so I'd say 
it's a calculations issue.

There are some other things, too:
1) IE doesn't obey height, but treats it like min-height, which means 
that your handles collapse to 10px in Firefox (and cut off the text), 
but don't in IE. I suggest using line-height, as that will also 
vertically centre the text.
2) You'd get a more robust solutions using absolute positioning, since 
you already know the width, height etc.
3) Divs are already block level elements, so don't worry about using 
display: block;.

Try this compacted CSS. I've moved a lot of the shared rules into a 
single selector to cut down on repetition, and I've removed the ID 
descendent selectors, since they were unnecessary (you already have an 
ID to select with):

#slider_holder div {
     margin:0;
     padding:0;
     border: 1px solid #000;
     text-align:center;
     position: absolute;

}
#slider_holder
{
     width: 150px;
     margin-left:5px;
     margin-right:5px;
     margin-bottom:5px;
     padding:0;
     z-index: 996;
     text-align:center;
     position: relative;
}

#slider_minus
{
     width:20px;
     top: 0;
     left: 0;
}

#slider_plus
{
     width:20px;
     top: 0;
     right: 0;
}

#slider_track
{
     background-color:#C0C0C0;
     width:100px;
     z-index: 996;
     left: 24px;
     top: 0;
}

Also, you'll need to add a   inside #slider_handle, since otherwise 
it collapses:
<div id="slider_track"><div id="slider_handle">&nbsp;</div></div>

Hope that helps a bit.
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to