473,386 Members | 1,860 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

<li> space issues

3
Hi

I am having some spacing issues with my navigation bar. It looks fine in NN, Firefox and Opera but it displays heaps of space between each link in IE 6.

I can fix it by moving my padding from #list-menu a to #list-menu li, but it then buggers up the background images and it displays incorrectly across all platforms.

I think I have left something fundamental out and I can't seem to see it. Any help would be most appreciated. The page is currently being tested http://jakitidesign.com/treotham/:

Thanks heaps

This is my css:
Expand|Select|Wrap|Line Numbers
  1.  
  2. #list-menu {
  3. margin:0;
  4. padding:0;
  5. }
  6.  
  7. #list-menu ul {
  8.  margin:0; 
  9.  padding:0;
  10.  list-style-type:none;
  11.  color:#FFFFFF;
  12. }
  13.  
  14. #list-menu li {
  15.  margin:0;
  16.  padding:0;
  17. }
  18.  
  19. #list-menu a {
  20.  display: block;
  21.  text-decoration: none; 
  22.  color:#FFFFFF;
  23.  margin:0;
  24.  padding-top:0.3em;
  25.  padding-left:1.8em;
  26.  padding-bottom:0.3em;
  27. }
  28.  
  29. #list-menu a:link, #list-menu a:active, #list-menu a:visited {
  30.  color: #FFFFFF;
  31. }
  32.  
  33. #list-menu a:hover {
  34.  background: #cc5aba url(images/navHvr.jpg);
  35.  color: #FFFFFF;
  36. }
  37.  
Nov 30 '07 #1
1 3649
Death Slaught
1,137 1GB
Try removing the background attribute from your table division, and using CSS to style it.

Also your page has 9 errors .

Thanks, Death
Dec 1 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Michael | last post by:
This is a two-part question to which I haven't been able to find an answer anywhere else. 1. Is it possible to format the bullet/number character of the <li>? In my styles sheet, I have the <li>...
1
by: Randall Sell | last post by:
OK, I am utterly stumped. The code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <style type="text/css"> ul {...
3
by: NWhite | last post by:
Hi all, I'm trying to indent <li> items using: li { margin: 0 0 0 50px;} So I expect something like the following to indent 50 pixels from the left margin:
4
by: Matt | last post by:
Hi, Got an unordered list with 100% width, with 5 list items of 20% width styled to fill the width of the container element. Renders fine in Mozilla, but when you change the size of the window...
4
by: abs | last post by:
Anybody has an idea how to get the <ul> element which is not nested in <li> element ? In other words I have several lists like this: <ul id="1"> <li>Aaaaaaaa</li> <li>Bbbbbbbb</li>...
2
by: Shaun | last post by:
Hello! I have a quick question regarding CSS and having it applied to all elements. I am trying to eliminate the gap between a paragraph and a list that usually occurs in html and I've found...
2
by: Andrew Donaldson | last post by:
I'd welcome some help in understanding what's going on with graphical browsers in the navigation list at: http://www.bounceandtickle.org.uk/index.html (This site is not about what it might...
5
by: Syl | last post by:
Hello experts!! The top menu navigation bar displays perfectly in IE, but does not display properly in Mozilla or Netscape : http://checkeredshirt.com/textonly.html For some reason the non-IE...
9
by: eros | last post by:
<li>List <ul> <li>List1</li> <li>List2</li> <li>List3</li> </ul> </li> How to call the php code from that html tags... when I click List1?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.