Old 13-04-2007, 08:20   #1 (permalink)
key_uk
Senior Member
 
key_uk's Avatar
 
Join Date: Mar 2006
Location: Shropshire
Posts: 125
CSS list problem

I want my css list to be honizontal, which it is on a mac using safari, but when I check it on a pc using IE its vertical, can anyone please help my link is:
http://finefood.pinpointcreative.co.uk/test.html

and my code is:

#bottomnavcontainer ul
{
list-style-type: none;
margin: 0;
padding: 0;
margin-left: 210px;
}

#bottomnavcontainer ul li a
{
background: transparent url(button1.jpg) left center no-repeat;
padding-left: 15px;
float:left;
font: normal 14px "Lucida Grande", "Lucida Sans Unicode", verdana, lucida, sans-serif;
text-decoration: none;
color: #666;
margin: 0 .8em 0 -.8em;
padding: 0 .8em 0 .8em;
}

#bottomnavcontainer ul li a:hover
{
background: transparent url(button2.jpg) left center no-repeat;
color: black;
}

#bottomnavcontainer ul li a#current
{
background: transparent url(button3.jpg) left center no-repeat;
color: #666;
}
  Reply With Quote
Old 13-04-2007, 08:25   #2 (permalink)
funkyprem
For all your goober needs
 
funkyprem's Avatar
 
Join Date: Dec 2004
Location: Coventry, UK
Posts: 1,531
you need to put the float: left on the li
__________________
Time is really the only capital that any human being has, and the one thing that he can’t afford to lose. - Thomas Edison

prem ghinde
  Reply With Quote
Old 13-04-2007, 08:33   #3 (permalink)
shaunmccall
Registered User
 
Join Date: Apr 2007
Posts: 9
or display:inline

though "float" might be easier to use
  Reply With Quote
Old 13-04-2007, 08:38   #4 (permalink)
key_uk
Senior Member
 
key_uk's Avatar
 
Join Date: Mar 2006
Location: Shropshire
Posts: 125
I have tried both float left and display:inline, but still wont work
  Reply With Quote
Old 13-04-2007, 08:39   #5 (permalink)
sleepingfish
css is for divs
 
sleepingfish's Avatar
 
Join Date: Feb 2003
Location: Norwich
Posts: 4,469
In the code that you've posted there isn't styling for your li.
  Reply With Quote
Old 13-04-2007, 08:43   #6 (permalink)
key_uk
Senior Member
 
key_uk's Avatar
 
Join Date: Mar 2006
Location: Shropshire
Posts: 125
I took the code from the max design website Listamatic: Bulleted Rollover List someone must be good at lists
  Reply With Quote
Old 13-04-2007, 08:56   #7 (permalink)
stickmus
hmmm...
 
stickmus's Avatar
 
Join Date: Jan 2004
Location: Yorkuk
Posts: 2,127
not you obviously

li {
float:left
}
__________________
George Smith - a vain attempt to get higher on google for my name

  Reply With Quote
Old 13-04-2007, 08:56   #8 (permalink)
key_uk
Senior Member
 
key_uk's Avatar
 
Join Date: Mar 2006
Location: Shropshire
Posts: 125
Where do I put?

li {
float:left
}
  Reply With Quote
Old 13-04-2007, 09:12   #9 (permalink)
stickmus
hmmm...
 
stickmus's Avatar
 
Join Date: Jan 2004
Location: Yorkuk
Posts: 2,127
__________________
George Smith - a vain attempt to get higher on google for my name

  Reply With Quote
Old 13-04-2007, 09:13   #10 (permalink)
shaunmccall
Registered User
 
Join Date: Apr 2007
Posts: 9
like:

#bottomnavcontainer ul li
{
float:left
}


  Reply With Quote
Old 13-04-2007, 09:32   #11 (permalink)
key_uk
Senior Member
 
key_uk's Avatar
 
Join Date: Mar 2006
Location: Shropshire
Posts: 125
Yea I did work that out afterwards, Thanks for all your help, I had to get rid of the green boxes tho.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8