Previous Message
Next Message

Variable widths

Sent by Tracy Donald on 2 March 2006 15:03


Is there a way to make the width of the li expand depending on the text
the user enters for the link?  I want the ul to fill up the div and the
link widths to expand or shrink.  At the link below is how I want it to
look but without having a set width for my li.  Hope this makes sense. 
Thanks
 
http://www.auburn.edu/academic/disabilities/work_in_progress/short_header_template.html
/*divs*/	#upperlinks
{	background-color:#DD550C;	float:right;	width:565px;	height:
38px;	text-align:center;	color:#FFF;	font-size: 90%;
	border-bottom:2px
solid	#F9903F;	white-space:nowrap;		}/*
Upper Links Attributes*/#upperlinks ul
{		margin-left:0px;	list-style-type:none;	}#upperlinks
li
{	float:left;	width:113px;	line-height:35px;		}	#upperlinks
a {	display:block;	margin:auto;	color:#FFF;	text-decoration:
none;}#upperlinks a:visited {	text-decoration: none;}	#upperlinks
a:hover {	background: url(ddToolbarHover.jpg) repeat-x top left;}
______________________________________________________________________
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: