| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: Mar 2008
Posts: 21
|
Hi, I'm a new member I'm currently working on my third year university project and am having some problems with css rollovers... ive sorted out my right navigation, but would like 2 small navigation bars under my header but at the moment these are stuck on the left hand side, does any one have ideas of how I can move these two links over to the right hand side?!? Many Thanks Marie |
|
|
|
|
|
#5 (permalink) |
|
Registered User
Join Date: Mar 2008
Posts: 21
|
this is that section below: #navcontainer1 ul /*navigation bar under header*/ { margin: 0; padding: 0; list-style-type: none; } #navcontainer1 li { margin: 0 0 4px; } #navcontainer1 a { display: inline; color: #CCCCCC; background-color: #42093d; width: 130px; padding: 4px 6px 3px 5px; text-decoration: none; font-family: Georgia, "Times New Roman", Times, serif; font-size: 16px; font-style: normal; height: 15px; float: left; margin: 0px; } #navcontainer1 a:hover { background-color: #713e6d; color: #; } |
|
|
|
#7 (permalink) |
|
Registered User
Join Date: Mar 2008
Posts: 21
|
</head> <body> <div class="position"id="header"><p><img src="Images/Header2.gif"></p> <div id="navcontainer1"> <ul class="navcontainer1"> <a href="#">Forum</a> <a href="#">Tell a friend</a> </ul> </div> <div id="navcontainer"> <ul class="navcontainer"> <li><a href="#">Home</a></li> <li><a href="#">About Us</a></li> <li><a href="#">Breaking News</a></li> <li><a href="#">Interesting Issues</a></li> <li><a href="#">Contact Us</a></li> </ul> </div> <div class="content"> <p><img src="Images/Content.gif"></p> </div> thats a bit of my code, and its the tell a friend and forum section that I want under my header on the right hand side?!? ne ideas? |
|
|
|
#8 (permalink) | |
|
Crimp Crimp Crimp
Join Date: Jun 2007
Location: Glasgow
Posts: 2,551
|
Ok, try this: Quote:
I think the 'display:inline' is probably causing you problems. Take out the float too and insert text-align:right. That might work? |
|
|
|
|
#10 (permalink) | |
|
Crimp Crimp Crimp
Join Date: Jun 2007
Location: Glasgow
Posts: 2,551
|
Quote:
Yes, it's fine to use both. Edit: I've just realised I said 'float:left' in my first post, when it should have been 'float:right'. Doh! Mountain out of a molehill, sorry! |
|
|
![]() |