css rollover problems

This is a discussion on "css rollover problems" within the Web Page Design section. This forum, and the thread "css rollover problems are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 5th, 2007, 08:31
Reputable Member
Join Date: Oct 2007
Location: UK
Posts: 267
Thanks: 0
Thanked 0 Times in 0 Posts
css rollover problems

Hi

Im having problems with my css rollover menu, no matter what i try the menu wont display in line, it keeps displaying down the left like.....

Home
About
Cart
Contact
etc

I need it to display inline like....

Home About Cart Conatct

here is my code,

HTML

Quote:
<div id="top_menu">
<div class="rollover">
<a href="default.asp">Home</a>
<a href="shopcontent.asp?type=aboutus">About Us</a>
<a href="shopcustcontact.asp">Contact Us</a>
<a href="shopaddtocart.asp">View Cart</a>
<a href="shopcheckout.asp">Checkout</a>
</div>
</div>
CSS
Quote:
.rollover a{
display: inline;
text-align: left;
background: url(images/btn.gif) 0 0 no-repeat;
}

.rollover{
color: #ffffff;
font-family: Arial, Helvetica, sans-serif;
font-size: x-small;
/*font-style: normal;
font-weight: normal;*/
padding-bottom: 10px;
padding-left: 30px;
padding-top: 9px;
padding-right: 25px;
text-align: left;
text-decoration: none;
width: 100%;
font-weight: 700;
}

.rollover a:link{
color: #ffffff;
font-family: Arial, Helvetica, sans-serif;
font-size: x-small;
/*font-style: normal;
font-weight: normal;*/
padding-bottom: 10px;
padding-left: 30px;
padding-top: 9px;
padding-right: 25px;
text-align: left;
text-decoration: none;
width: 100%;
font-weight: 700;
}
.rollover a:visited{
color: #ffffff;
font-family: Arial, Helvetica, sans-serif;
font-size: x-small;
/*font-style: normal;
font-weight: normal;*/
padding-bottom: 10px;
padding-left: 30px;
padding-top: 9px;
padding-right: 25px;
text-align: left;
text-decoration: none;
width: 100%;
font-weight: 700;
}

.rollover a:hover{
/*background-color: #b00a0d;
color: #ffffff;*/
background: url(images/over_btn.gif) 0 0 no-repeat;
font-family: Arial, Helvetica, sans-serif;
font-size: x-small;
/*font-style: normal;
font-weight: normal;*/
padding-bottom: 10px;
padding-left: 30px;
padding-top: 9px;
padding-right: 25px;
text-align: left;
text-decoration: none;
width: 95px;
background-repeat: no-repeat;
font-weight: 700;
}

.rollover a:active{
background: url(images/over_btn.gif) 0 0 no-repeat;
color: #ffffff;
font-family: Arial, Helvetica, sans-serif;
font-size: x-small;
/*font-style: normal;
font-weight: normal;*/
padding-bottom: 10px;
padding-left: 30px;
padding-top: 9px;
padding-right: 25px;
text-align: left;
text-decoration: none;
width: 95px;
font-weight: 700;
}


  #2 (permalink)  
Old Nov 5th, 2007, 10:44
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: css rollover problems

You are missing a few bits to your html and css. A list for navigation should sit between <ul></ul> (unordered lists) and each link should sit between list code. <li></li>

Check out this link ..Taming Lists. it should really help you.
  #3 (permalink)  
Old Nov 5th, 2007, 11:30
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: css rollover problems

I guess we'll close this thread since you've already started a new one.
Thread closed.
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rollover and disjointed rollover on same items? jtyoungs Web Page Design 37 Oct 1st, 2007 14:05
Complex Button RollOver/RollOut Effects Problems. Toby1979 Flash & Multimedia Forum 6 Jul 13th, 2007 16:12
CSS image rollover problems when using hrefs marksk Web Page Design 8 Mar 9th, 2007 11:45
Intermittent rollover problems artdog Flash & Multimedia Forum 3 Sep 11th, 2006 13:05
mouse rollover and sound problems djmichaud Flash & Multimedia Forum 8 Aug 31st, 2006 14:11


All times are GMT. The time now is 21:48.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43