hi just been playing around with the Glossy Horizontal Menu that is avalible on the CSS section on the site but cant seem to center this menu with out it messing up when you put it in a differnt windowsize/screen rez?
is there some way you can set it so that its always centered?
please help!
Code:<style type="text/css"> /*Credits: By Santosh Setty (http://webdesigninfo.wordpress.com) */ /*Posted to: Dynamic Drive CSS Library (http://www.dynamicdrive.com/style/) */ .glossymenu{ position: fixed; padding: 0 0 0 0s; margin: 0 -10 0 -10; background: url(images/menub_bg.gif) repeat-x; /*tab background image path*/ height: 46px; } .glossymenu li{ float:left; } .glossymenu li a{ float: left; display: block; color:#000; text-decoration: none; font-family: sans-serif; font-size: 13px; font-weight: bold; padding:0 0 0 16px; /*Padding to accomodate left tab image. Do not change*/ height: 46px; line-height: 46px; text-align: center; cursor: pointer; } .glossymenu li a b{ float: left; display: block; padding: 0 24px 0 8px; /*Padding of menu items*/ } .glossymenu li.current a, .glossymenu li a:hover{ color: #fff; background: url(images/menub_hover_left.gif) no-repeat; /*left tab image path*/ background-position: left; } .glossymenu li.current a b, .glossymenu li a:hover b{ color: #fff; background: url(images/menub_hover_right.gif) no-repeat right top; /*right tab image path*/ } </style> <ul class="glossymenu"> <li class="current"><a href="http://www.dynamicdrive.com/"><b>Home</b></a></li> <li><a href="http://www.dynamicdrive.com/style/"><b>CSS</b></a></li> <li><a href="http://www.dynamicdrive.com/forums/"><b>Forums</b></a></li> <li><a href="http://tools.dynamicdrive.com"><b>Webmaster Tools</b></a></li> <li><a href="http://www.javascriptkit.com/"><b>JavaScript</b></a></li> <li><a href="http://www.cssdrive.com"><b>Gallery</b></a></li> </ul>



Reply With Quote

Bookmarks