Hi all,
I am new to this forum. It looks very helpful. Any solutions to this problem would be greatly appreciated.
I have created a main nav area set just below the header container to reveal rounded rollover images as buttons using css but I am having a lot of trouble aligning the links (an unordered list in the html) and the buttons/rollover images to the images that are placed above on the header (I also want the link titles centered within each button). Essentially, I want to give the effect that the rollover buttons and links are connected to the images above and are evenly spaced. I have managed to get three of the five links in place but the rollover effects (especially the second state) break down and become distorted after the first link.
I am fairly new to design but would really like understand why this isn't working and find a solution as I have spent a week working on it, mainly playing with the padding settings within css and the size of the nav container.
For your information, the size of images on the header that I want to correspond to the buttons below are W: 110px H: 115px and spaced apart by 10px. The width of the nav container below is 590px to correspond with the images above. The rollover image is W: 110px and H:60 (30px for each button) where one is sitting on top and the other directly below ).
The CSS code is below:
CSS
#mainNav {
position: absolute;
background-color: #8DADAF;
left: 231px;
width: 590px;
bottom: -29px;
height: 29px;
}
#mainNav ul {
float: left;
margin: 0;
padding: 0;
list-style: none;
}
#mainNav li {
padding: 0;
margin: 0;
display: block;
float: left;/* ~~ makes list horizontal ~~ */
}
#mainNav li a:link, #mainNav li a:visited {
padding: 0em 4.0em 0em 1.0em;
font-family: Verdana, Geneva, sans-serif;
font-size: 0.8em;
font-weight: bold;
color: #8dadaf;
text-decoration: none;/* ~~removes default underline from link~~ */
display: block;
line-height: 30px;
background: url(../_images/nav_rollover.jpg) no-repeat left top;
#mainNav li a:hover {
color: #b11f44;
background: url(../_images/nav_rollover.jpg) right bottom;
border: none;
}
Many thanks in advance.
Toby:?: