How can I remove borders in HTML tables?
I'm coding a web page using a combination of tables and CSS. In the header portion of the page, which has a colored background, I have two TD cells. On the table border="0" is set, however there are still white lines showing up through the colored background. I'd like to remove these white lines. Have already tried adding 'border:0px;' to the stylesheet and it is not working. Browser is Firefox. Any help or suggestions are appreciated!
Public Comments
- <table border="0" style="border-collapse:collapse;" cellspacing="0"> cellspacing will get rid of the white spaces. it defaults at 2 instead of zero html reference http://www.w3schools.com/tags/default.asp css reference http://www.w3schools.com/css/css_reference.asp
- Might need to see your coding to be sure, but try this: 1. Make sure you have the border set to 0px for the TD's, especially if you have any borders showing in the tables. 2. Try setting the border to "none." 3. Make sure that the option to turn off the borders is in the lower part of your CSS, especially if your styling is listed in the heading. Remember that CSS means "cascading", which means that a setting can be overridden by something different below it.
Powered by Yahoo! Answers