1) Script Title:
Chrome CSS DropDown Menu
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamici...rome/index.htm
3) Describe problem:
I'm needing a littlebit of help with Chrome CSS Menu like many people here in this forum
After a bit of playing and testing the menu, i can't get it aligned to the right and have auto-width at the same time.
Right align was posible after adding align="right" to the div of the menu and changing the css to:
.chromestyle{
width: 99%;
font:bold 11px Verdana;
color:#767676;
}
.chromestyle:after{ /*Add margin between menu and rest of content in Firefox*/
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.chromestyle ul{
border: 1px solid #BBB;
width: 60%;
background: url(chromebg3.gif) center center repeat-x; /*THEME CHANGE HERE*/
padding: 4px 0;
margin: 0;
text-align:right; /*set value to "left", "center", or "right"*/
}
The menu will 'reserve' 99% of the page width and 'take' the right 60% of it.
But i would like that those 60% is set to somenthing like auto; so the menu width depends on the length of the menu items together. But width:auto; in the .chromestyle ul result in a full width menu bar.
Somebody here with a minute of time and a genius mind?![]()




Reply With Quote


Bookmarks