You are hereStubborn Table Cell Borders in Firefox

Stubborn Table Cell Borders in Firefox


Although HTML is a standard since November 2005, every browser takes the liberty to display the same HTML code in a different way. I am quite sure everyone who surf the net using more than one browser notices this and with the growing competition of web browsers the problem will remain with us for quite some time.

As a web developer, you need to make sure your sites look good on all browsers. Unfortunately, most web developers tend to use just one browser to develop their code on and even forget to do their final testing on different browsers.

My guess is that most of the problems with cross-browsers HTML code take place with Microsoft's Internet Explorer (IE) and Mozilla's Firefox (FF), since these are currently the two most common browsers known to man.

Recently I had this kind of problem involving table cell borders.

I wanted to use just the bottom border of the cells in my table and therefore I used a style that looked something like this:

td
{
      border-top:0px;
      border-bottom:1px solid Gray;
      border-left:0px;
      border-right:0px;
}

In IE, this worked perfectly but in FF the left and right borders didn't want to disappear. I tried many different things in order to make them go away without messing the things in IE and I found that the solution resides in the 'hidden' property.

Simply set the border attribute to hidden like so: border-left:hidden; and the stubborn cell borders in FF will vanish. Possibly, there are other solutions but as long as one works, no need to look for others, right? :)

Many thanks, this is what I was needing

Cheers mate!

This was just what I needed. Thanks

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.

ABOUT ME

View Ehud Ashkenazi's profile on LinkedIn

Ehud Ashkenazi is a Software Developer and Webmaster at a large eLearning company.

Working with various technologies including C-Sharp(C#), ASP 3.0, ASP.NET, PHP, T-SQL, HTML and more.

Currently holding a BA in Computer Science from the Efi Arazi School of Computer Science, IDC Herzliya, Israel.