View Single Post
  #6 (permalink)  
Old Feb 24th, 2008, 23:57
djcritch djcritch is offline
New Member
Join Date: Feb 2008
Location: bristol - uk
Age: 21
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Re: how can i center this?

yea i know all about web standers i just put that together as a quick online example for people to help me with.

couple of issues with your modifications:

1. the bar isnt going all the way accross the page anymore

2. its still not in the center of the bar

heres what i got now:

Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html>
<head>
<style type="text/css">
 
/*Credits: By Santosh Setty (http://webdesigninfo.wordpress.com) */
/*Posted to: Dynamic Drive CSS Library (http://www.dynamicdrive.com/style/) */
#wrapper {
width: 100%;
text-align: center;
margin: 0 auto;
}
.glossymenu{
position:relative;
padding: 0 0 0 0;
margin: 0 -10 0 -10;
background: url(images/menub_bg.gif) repeat-x; /*tab background image path*/
height: 46px;
list-style: none;
}
.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>
</head>
<body>
 
<div id="wrapper">
<ul class="glossymenu">
<li class="current"><a href="

Last edited by Jack Franklin; Feb 25th, 2008 at 07:11. Reason: Added [/code] tag in your post so the text could display properly.
Reply With Quote