| | |
Eliminating visible table borders?
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Aug 2006
Posts: 999
Reputation:
Solved Threads: 1
I built a php-driven form that is intended to have its results printed out and shipped to another location. The results are laid out as a set of tables that hold the information in place. I tested the page on a system wher ethe default browser isFirefox, which displayed the tables without any kind of border. However, when I transfered over to the system which will actually be running the form, I discovered that the default browser there is IE, and that in IE, there are some nasty borders and partial borders (some tables only have one line for the top border, but two for the sides and bottoms) visible, and I'm fairly sure those will be printed out as well. What methods are there to eliminate visible borders from a table that's being displayed in IE?
Thank you for your consideration,
EnderX
Thank you for your consideration,
EnderX
you can turn them off on the table tag itself:
or with CSS:
I prefer to do it manually (first example) on all tables, and then turn them on where I want them with CSS.
The partial borders happen when you have cells without data in them.. if you wanted an unbroken border, just put this into otherwise empty cells:
It will force the cell to 'exist' and be rendered with a proper border.
<table border="0"><tr><td>etc</td></tr></table>
(this will turn off the border throughout that table)or with CSS:
table
{
border-style:none;
}
(this will disable borders for all tables on a page that includes that rule)I prefer to do it manually (first example) on all tables, and then turn them on where I want them with CSS.
The partial borders happen when you have cells without data in them.. if you wanted an unbroken border, just put this into otherwise empty cells:
HTML and CSS Syntax (Toggle Plain Text)
Last edited by MattEvans; Feb 23rd, 2007 at 3:58 am.
Plato forgot the nullahedron..
![]() |
Similar Threads
- CSS For Table (HTML and CSS)
- a funny website of mine (Website Reviews)
- DIV Help! (HTML and CSS)
- Please review CandyBarDance (Website Reviews)
- Looking for color ... (Site Layout and Usability)
- please review my site www.brokehorses.com (Website Reviews)
Other Threads in the HTML and CSS Forum
- Previous Thread: Move 2 Scrollbars
- Next Thread: windows script host - help me pls
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7






