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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS for tables 2

Status
Not open for further replies.

toolkit

Programmer
Aug 5, 2001
771
GB
Does anyone have a list of equivalent CSS settings to <TABLE>, <TD> attributes, that work for both IE5 and NS6, for example:
[ul]
[li]cellspacing
[li]cellpadding
[li]rules
[/ul]
Thanks for any pointers, Neil


 
Hi Toolkit,

I think you mean CSS-properties like :

cellspacing
margin ; margin-left etc.

cellpadding
padding ; padding-left etc.

rules
border ; border-left ; border-color etc.

I don't know them for IE5 and NS6 but there is a tip for IE4 so this will work for IE5 at least, I think:

thread215-113187

I also made a post a few days ago with an example like it:

thread215-147295

Hope this helps,

Erik
 
Thanks Boomerang.

In the end, I created an javsacript object to hold the NS or IE styles I required, eg:

Code:
// NB: use JS interCapitalised property
//     instead of CSS hyphenated property
var styles = {
    ns6: { border: &quot;1px solid #000000&quot;,
           backgroundColor: &quot;#FF0000&quot;
         },
    ie5: { border: &quot;1px dotted #FFCC33&quot;,
           backgroundColor: &quot;#FFFF00&quot;
         }
};
Cheers, Neil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top