|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
CSS NavBar
Hi all,
I recently started making a site is css and I had no problems until I came to making the navigation bar. Now I want to have like a button effect on the text so I made this: Code:
a.navbar:link {
display:block;
position:absolute;
height:25px;
width:150px;
background-color:#FFCC99;
top:40px;
left:0px;
z-index:1;
}
The only problem is that if I apply this to all my navbar links they overlap each other because the positioning is always the same. Any help much appreciated! Jack. |
|
#2
|
||||
|
||||
|
Take out position:absolute; then...
__________________
Support requests via PM will be ignored! |
|
#3
|
|||
|
|||
|
Great job!! Thanks!
|
|
#4
|
||||
|
||||
|
Oh, sorry, yeah, you have them all placed in the same position with the top:40px; left:0px;, so of course they'll be in the same place.
Try creating a container and placing that at 40px,0px, then putting the menu items in it... |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > CSS NavBar |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|