473,396 Members | 2,139 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,396 software developers and data experts.

Firefox ignoring text-decoration:none for <li>? Text of <li> is only clickable?

54
For some reason, FF likes to put a black underline on all my buttons.
No matter what I do, it has the line
I've tried displaying as block and cursor, anything..
Also I've been trying to get it so the entire block is clickable, not just the text.
I've sorta got it so it's clickable, just some parts of the button I still can't click on.

The website is http://pdhtdev.johnabbott.qc.ca/stud...olio/index.htm

The css that is relvant to my buttons...
Expand|Select|Wrap|Line Numbers
  1.  
  2.  
  3. a {
  4.     color:#CC9900;
  5.     text-decoration:none;
  6. }
  7.  
  8. a:visited {
  9.     color:#CC9900;
  10.     text-decoration:none;
  11. }
  12.  
  13. a:hover {
  14.     text-decoration:underline;
  15. }
  16.  
  17.  
  18.  
  19.  
  20. /*NAVIGATION*/
  21.  
  22. ul a,a:visited,a:focus {
  23.     color:#ffffff;
  24.     text-decoration:none;
  25.     cursor:pointer;
  26.     display:block;
  27. }
  28.  
  29.  
  30.  
  31. ul,li,a ul, a li {
  32.     text-decoration:none;
  33. }
  34.  
  35. #sidebar {
  36.     float:left;
  37.     display:block;
  38.     border:solid 1px #333333;
  39.     height:150px;
  40.     width:150px;
  41.     overflow:auto;
  42.     position:absolute;
  43. }
  44.  
  45. #topbar {
  46.     width:100%;
  47.     height:30px;
  48.     font-family:Verdana;
  49.     font-variant:small-caps;
  50.     text-decoration:underline;
  51.     font-style:italic;
  52.     background-color:#353535;
  53.     background-image: url(images/button3.gif);
  54.     overflow:hidden;
  55.     border-top: solid 1px #ffffff;
  56.     border-bottom: solid 1px #333333;
  57. }
  58.  
  59. #buttonconatiner {
  60.     width:1100px;
  61.     height:30px;
  62.     margin:0 auto;
  63.     overflow:hidden;
  64.  
  65. }
  66.  
  67. #buttons {
  68.     margin:0 auto;
  69.     height:30px;
  70.     width:700px;
  71.     text-align:center;
  72.     overflow:hidden;
  73. }
  74.  
  75. #buttons ul {
  76.     height:30px;
  77.     float:none;
  78.     clear:both;
  79.     padding:0px;
  80.     margin-top:0px;
  81.     margin-bottom:0px;
  82.     margin-left:0px;
  83.     margin-right:0px;
  84.     overflow:hidden;
  85. }
  86.  
  87. #buttons li {
  88.     padding-top:3px;
  89.     padding-bottom:0px;
  90.     padding-left:0px;
  91.     padding-right:0px;
  92.     height:30px;
  93.     width:140px;
  94.     text-align:center;
  95.     list-style-type: none;
  96.     float:left;
  97.     display:block;
  98.     overflow:hidden;
  99.     cursor:pointer;
  100. }
  101.  
  102. .selected, .selected a {
  103.     color:#e1a902;
  104.     overflow:hidden;
  105.     background-repeat:repeat-x;
  106.     cursor:pointer;
  107.     }
  108.  
  109. #buttons li:hover {
  110.     background-image: url(images/button3sel.gif);
  111.     height:30px;
  112.     width:140px;
  113.     text-decoration:underline;
  114.     overflow:hidden;
  115.     cursor:pointer;
  116.     display:block;
  117. }
  118.  
  119.  
  120.  
The version that I linked too is an older version where the links aren't blocked so you can't tell just from that version, the css I posted is the latest version.

The CSS has been validated also and it's passed.
May 10 '08 #1
2 7031
drhowarddrfine
7,435 Expert 4TB
#buttonconatiner ?
In #topbar, you are setting text-underline and that's where it comes from. Firefox is correct.

To get the links to fit inside the li, add display:block to the <a>
May 11 '08 #2
GloStix
54
#buttonconatiner ?
In #topbar, you are setting text-underline and that's where it comes from. Firefox is correct.

To get the links to fit inside the li, add display:block to the <a>
Man you're the best. I bet you've seen my site like 4 times now xD

I can't believe I missed that one.
May 11 '08 #3

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 {...
5
by: toylet | last post by:
Attached is some css codes for a website. It has 3 parts: top-bar, side-bar (on the left) and main-body. The top-bar has a mouseover menu called top-menu implemented via ul:hover. When the mouse...
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: Mark | last post by:
Hopefully I 'm missing something silly, but I can't find an easy way to loop all list items in a simple <ol>. I was hoping a for loop as shown below would be enough, however clicking "alert all" in...
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...
6
by: cbartlett | last post by:
If I have: <ul id="theUL"> <li id="anLi1">some text</li> <li id="anLi2">some other text</li> <ul> How can I get the value of the text within the the li's? Any help much appreciated. thanks...
32
by: Mark | last post by:
Hi there I am using <li> tags for my menu. <ul> <li>item 1</li> <li>item 2</li> <li>item 3</li> </ul>
7
by: gener672 | last post by:
Problem: font-size seems to be rendered differently for <li class="issue"> and for <p class="issue">. (Example is in: www.dvmvac.com/snippet/ ... ignore background - I just did a quick file copy and...
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.