![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, All! I am having an issue with my navigation bar. I have created it using the sprite technique (I am a newbie, can you tell?) and everything seemed to be working perfectly until I played around with the order of some of my surrounding divs (In order to get the perfect positioning). Now, the up image shows up, but never goes to the hover state. |
|
.....etc. (Continues down through "current" state---I haven't changed anything below this point, so I doubt the problem is there) |
|
Can anybody see where I am going wrong? Like I said, it was working perfectly until I messed around with the "header" and "logo" divs. I tested it without those divs surrounding it and it works fine. I am really at a loss. Any help you can provide would be amazing! |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Can anybody see where I am going wrong? |
#5
| |||
| |||
|
|
Well, I was hoping it didn't have to come to this, but here goes... http://fpm-geo.com/test/newsite/index.html Suggestions are very welcome! (just be nice!) |
#6
| |||
| |||
|
|
On 2009-09-23, screntropy wrote: Well, I was hoping it didn't have to come to this, but here goes... http://fpm-geo.com/test/newsite/index.html Suggestions are very welcome! (just be nice!) You have a fixed height that isn't large enough for my default font size. See: <http://cfaj.freeshell.org/testing/fpm-geo.jpg>. |
#7
| |||
| |||
|
|
On 23 Sep, 00:12, screntropy <scrch... (AT) gmail (DOT) com> wrote: Can anybody see where I am going wrong? Start again, but without the position:absolute * ESPECIALLY NOT on anything like a list element for which you have *asequence of them. Also avoid using id, in favour of class, in CSS selectors - particularly for the major page elements. |
#8
| |||
| |||
|
|
On Sep 23, 10:42Â*am, Andy Dingley <ding... (AT) codesmiths (DOT) com> wrote: On 23 Sep, 00:12, screntropy <scrch... (AT) gmail (DOT) com> wrote: Can anybody see where I am going wrong? Start again, but without the position:absolute Â* ESPECIALLY NOT on anything like a list element for which you have Â*asequence of them. Also avoid using id, in favour of class, in CSS selectors - particularly for the major page elements. Thanks for tip about id vs. class. I will definitely be changing that! |
|
I tried to take out the position:absolute, but it still doesn't seem to work. Changing the absolute to relative doesn't work either. Any other ideas? |
#9
| ||||||||||||
| ||||||||||||
|
|
I am having an issue with my navigation bar. I have created it using the sprite technique |
|
(I am a newbie, can you tell?) |
|
and everything seemed to be working perfectly until I played around with the order of some of my surrounding divs (In order to get the perfect positioning). Now, the up image shows up, but never goes to the hover state. |
|
Here is my relevant xhtml code: |
|
div id="logo" div id="header" div id="nav" ul id="navigation" li id="nav_services"><a href="#">Services</a></li li id="nav_methods"><a href="#s">Methods</a></li li id="nav_experience"><a href="#">Experience</a></li li id="nav_personnel"><a href="#">Personnel</a></li li id="nav_media"><a href="#">Media</a></li li id="nav_about"><a href="#">About Us</a></li li id="nav_contact"><a href="#">Contact Us</a></li /ul /div /div /div and here is the relevant CSS code: div#logo { |
|
z-index:-1; |
|
} div#header { width:100%; margin-top:0; margin-bottom:0; position:absolute; width:801px; top:0; left:50%; margin-left:-400px; |
|
height: 89px; } div#nav { width:100%; |
|
height:36px; text-align:center; z-index:1; |
|
} #navigation { width: 800px; height: 36px; position: absolute; background:url(../images/Navigation/nav_main.png) margin: 0; padding: 0; top:90px; left:50%; margin-left:-400px; |
|
z-index:100; } #navigation li { float:left } #navigation li a { position: absolute; top: 0; margin: 0; padding: 0; display: block; height: 36px; background: url(../images/Navigation/nav_main.png) no-repeat; text-indent: -9999px; |
|
z-index: 1; } li#nav_services a { left: 0px; width: 114px; background-position: 0 0; } .....etc. (Continues down through "current" state---I haven't changed anything below this point, so I doubt the problem is there) |
![]() |
| Thread Tools | |
| Display Modes | |
| |