insafeuste
05-17-2010, 10:30 PM
First, I would like to apologize for my lack of knowledge and experience in dealing with css. This is my first website and the coding may not be entirely logical.
The website is www.palousehillscomputing.com and is in the very beginning stages of its creation. What I would like to achieve is a white background for each link when it is hovered over, without moving the other links over. Ideally, I would like the white rollover to cover all empty space between the links. For example, when rolling over the "services" link, I would like the white background to start at the "products" link and at the beginning of the "about us" link (all without the links moving when doing a rollover). I hope this is somewhat clear... Here is my css:
body {background-color: #900;}
#header { width: 900px; height: 160px; padding: 0; background-image: url(../images/header.jpg);margin: auto; overflow: hidden; border: 2px solid white; z-index: 1;}
#headart { background-image: url(../images/header.png); height: 160px; width: 900px;}
#nav{ position: relative; top: 135px; left: 200px; margin: 0; padding: 0; z-index: 3;}
#nav ul { color: white; list-style: none; margin: 0; font-size: 21px; }
#nav ul li { display: inline; padding: 0 10px 0 10px;}
a.nav:link {color: white; text-decoration: none; }
a.nav:visited {color: white; text-decoration: none; }
a.nav:hover {color: #900; text-decoration: none; padding: 7px 5px 0 5px; background-color: white;}
a.nav:active {color: white; }
.main { background-color:#FEE0B8; color: #B00400; font-size: 24px; text-align:center; height: 450px; width: 900px; margin: auto; border: 2px solid white; padding: 20px 0;}
#welcome {color: black; font-size: 17px; float: left; max-width: 40%; height: auto; padding: 10px; border: solid 1px; border-color: #F00; margin: 0 20px 0 20px;}
.h3 {padding-bottom: 5px; margin: 0; }
#new { float: left; border: solid 1px red; width: 400px; height: 200px;}
#footer { height: 100px; margin: auto; width: 900px; background-image:url(../images/header.jpg); border: solid white 2px;}
The website is www.palousehillscomputing.com and is in the very beginning stages of its creation. What I would like to achieve is a white background for each link when it is hovered over, without moving the other links over. Ideally, I would like the white rollover to cover all empty space between the links. For example, when rolling over the "services" link, I would like the white background to start at the "products" link and at the beginning of the "about us" link (all without the links moving when doing a rollover). I hope this is somewhat clear... Here is my css:
body {background-color: #900;}
#header { width: 900px; height: 160px; padding: 0; background-image: url(../images/header.jpg);margin: auto; overflow: hidden; border: 2px solid white; z-index: 1;}
#headart { background-image: url(../images/header.png); height: 160px; width: 900px;}
#nav{ position: relative; top: 135px; left: 200px; margin: 0; padding: 0; z-index: 3;}
#nav ul { color: white; list-style: none; margin: 0; font-size: 21px; }
#nav ul li { display: inline; padding: 0 10px 0 10px;}
a.nav:link {color: white; text-decoration: none; }
a.nav:visited {color: white; text-decoration: none; }
a.nav:hover {color: #900; text-decoration: none; padding: 7px 5px 0 5px; background-color: white;}
a.nav:active {color: white; }
.main { background-color:#FEE0B8; color: #B00400; font-size: 24px; text-align:center; height: 450px; width: 900px; margin: auto; border: 2px solid white; padding: 20px 0;}
#welcome {color: black; font-size: 17px; float: left; max-width: 40%; height: auto; padding: 10px; border: solid 1px; border-color: #F00; margin: 0 20px 0 20px;}
.h3 {padding-bottom: 5px; margin: 0; }
#new { float: left; border: solid 1px red; width: 400px; height: 200px;}
#footer { height: 100px; margin: auto; width: 900px; background-image:url(../images/header.jpg); border: solid white 2px;}