I can only go with what happens when I do it here. The page you linked to used the id table3, not table1 as in the example code from your last post. It also already had its table3 border-collapse style set to collapse, your current example does not, there may be other important differences. The style I gave was for that page, not some other page with other things set. Also, in your example stylesheet from your post you have:
Code:
table1 {
font-family: Arial;
font-size: 11pt;
text-align: justify;
border: 1px solid #dddddd;
margin: 6;
padding: 0;
width:98%;
cellpadding:0;
cellspacing:0;
}
This (highlighted above) pertains to nothing, if you want it to pertain to the element with the id of table1 it must be:
Code:
#table1 {
font-family: Arial;
font-size: 11pt;
text-align: justify;
border: 1px solid #dddddd;
margin: 6;
padding: 0;
width:98%;
cellpadding:0;
cellspacing:0;
}
Now, all this stuff (highlighted) should be removed:
Code:
<table cellpadding="0" cellspacing="0" id="table1"
style="font-family: Arial; font-size: 11pt; " width="98%">
<tr><td style="border-top-style: solid; border-top-width: 1px;
border-left-style:solid;
border-left-width:1px"
width="56%"
bgcolor="#EBEBEB"
valign="top"
bordercolor="#DDDDDD">
Style should be set in the stylesheet. In line styles will override those in the stylesheet, but should not be used. Attributes like:
cellpadding="0"
and:
width="56%"
will be overridden by styles in the stylesheet, if there are any that pertain to that attribute's effect. Attributes are to be avoided, most are deprecated anyway. This means that their effect varies from browser to browser and according to other issues. So they aren't very reliable.
Now, it is pretty clear what attributes like width or height, probably even border and border properties would pertain to as styles, but others like valign and cellspacing/cellpadding may not be.
The valign attribute is replaced by the style vertical-align, cellspacing is replaced by margin for the td element, not the table. Similarly cellpadding is replaced by padding for the td. If you want different styles for a particular td, give it an id to use in the stylesheet. If you have particular styles to apply to two or more td's on the page, give them a class to use in the stylesheet.
So for example, to duplicate the intended effect of your styles (this includes the ones not in effect due to the improper selector for table1 in the stylesheet, and those implied by attributes), using only styles in the stylsheet would go like so:
Code:
<style type="text/css">
#table1 {
font-family: arial, sans-serif;
font-size: 11pt;
text-align: justify;
border: 1px solid #ddd;
margin: 6;
padding: 0;
width: 98%;
}
#table1 td {
padding: 0;
margin: 0;
}
#td1 {
border-top: 1px solid #ddd;
border-left: 1px solid #ddd;
background-color: #ebebeb;
vertical-align: top;
width: 56%
}
a { font-family: Arial; font-size: 11pt }
p { font-family: Arial; font-size: 11pt; margin-top:0; margin-bottom:0 }
</style>
The HTML markup (from your post, just altered here to go with these styles):
HTML Code:
<table id="table1">
<tr><td id="td1">
Once you've consolidated things like that, it becomes much easier to tweak it to whatever is required.
Bookmarks