Previous Message
Next Message

Getting horizontal list to span specific width

Sent by Magenta Placenta on 9 August 2006 00:12


Is there a way to get a stylized list to span the width of it's parent 
container?  I've tried a width:100% as well as the exact pixel width (784) 
on the <ul>, coupled with padding on the anchor tag to give the button text 
some horizontal padding.  This gets me close, but I end up with a slight gap 
on the far right side.

What I ended up doing was classing the first <li> and applying a pixel width 
to that.  You can see this at: 
http://designs.inherent.com/dynapsis/build/bioserver.cfm

Without that first li classed/width, there is a gap (oh, 10 pixels or so) on 
the far right button, which becomes very obvious when you do a mouseover to 
change the background color.  You can see this at: 
http://designs.inherent.com/dynapsis/build/bioserver2.cfm

Is there an easier way to accomplish what I've done at the first url above?


______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
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/
Previous Message
Next Message

Message thread: