Hi everyone,
I have been working on my web site for some time and have figured most of it out. I now have an issue that foir the last 2 days has really had me scratching my head. On my web page I decided to change the navigation bar to an image and have the image changes when you hover or click on it. My issue is i’m unable to get the text to center over each image.
Have a look here [url]www.hackitz.ca/about
here is my html
——————html————————–
<div class=”menu”>
<div class=”bg_menu”>
<div class=”indent_menu”>
<ul>
<li><a href=”/” title=”Home”>Home</a></li>
<li><a href=”/about” title=”About Me”>About Me</a></li>
<li><a href=”/contact” title=”Contact Me”>Contact Me</a></li>
<li><a href=”/testimonials” title=”Testimonials”>Testimonials</a></li>
</ul>
<div class=”clear”></div>
</div>
</div>
—————-css————————————
.menu { background:url(images/butn/menu_l_b.png) 0 0 no-repeat; height:40px; margin-bottom:-20px; }
.bg_menu { background:url(images/butn/menu_r_b.png) right top ; width:100%; height:40px;}
#header .menu .indent_menu {padding:8px 20px 0 0;}
#header .menu li {display:inline; width:130px; margin:0px -12px 0px 0px; }
#header .menu li a {display:inline; text-decoration:none; font:bold 13px Arial ;color: white;width: 79px;height: 23px;float: left;display: block;padding:9px 0px 9px 42px;background-image: url(images/butn/cdbg.png);background-repeat: no-repeat;position: relative;top: -8px;}
#header .menu li a:hover { background-position: 0 -40px;color: #46D3FF;}
#header .menu li a:active {background-position: 0 -40px;color:#fff;}
—————-end——————————–
If some can shed some light on this it would be much appreciated.