Forum Moderators: open
Except . . .
I've got one table with the following properties:
<table width="100%" cellpadding="0" cellspacing="0" border="1">
Before I put in the doctype, the border displayed fine. Now, however, it looks like the side borders between cells has been eliminated. Why might that be? (I tried changing the doctype to transitional, but that didn't help either.)
Thanks,
Matthew
It came as a bit of a surprise to me to tell the truth that XHTML strict dtds allowed it but I'd still go the CSS route personally...
Nick
You should also export the CSS to an external file and call it with instructions in the <head> section of the HTML file. Most people use this one, but it can cause problems:
<link type="text/css" rel="stylesheet" src="/path/file.css">
It is better to use this slightly longer version of this, again placed in the <head> section of the HTML file:
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css">
@import url(path/file.css);
</style>
This version hides the CSS from older versions of Netscape that cannot handle CSS. This stops those versions from displaying a corrupted page with overlapping elements.