Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Overriding table border 1

Status
Not open for further replies.

rjoubert

Programmer
Oct 2, 2003
1,843
US
I have an HTML table with a border set to 1. There is no content in the topmost, leftmost cell. Can I turn off the border just for that one cell?
 
Of course. one way is with an inline style like:
Code:
<td style="border:none">
There are a myriad of similar ways - assign a class to just that cell, etc. etc.

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
That works fine for the cell itself, but the outer border of the parent table is still on. In other words, the small box around the cell is gone, but the part of the outer table border above that cell is still there. I guess I could try turning the table border off and applying the border style to each and every cell.
 
I think I've got it working now. I had to leave the border set to 1 on the table tag, but added a style="border:none". Then I set the style="border:none" of the cells I wanted to be borderless.

Thanks traingamer for getting me pointed in the right direction.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top