September 17th, 2003, 12:37 PM
how do you create this in css?
this are the attributes on one of my table:
border="1" cellpadding="5" cellspacing="0" bordercolor="#EBEEF3"
i need the cells to have borders, the table to have space between cells.
i cannot create the style on a td because i use td on other instances where i don't need the space between the cells.
Professional low cost offshore website design and development using Drupal.
September 17th, 2003, 12:52 PM
Are the 'other instances' on a different table or on the same table? If they are on the same table, try TBODY.
September 17th, 2003, 09:48 PM
other instances would be on other tables.
for instance, navigational panel which consists of images tabs are place in tables. it would destroy the layoutif it would also be affected by the padded.
September 18th, 2003, 12:11 PM
Just put those attributes in the table tag... it would only affect the table you put them in. Will that work, or do you want to do it with CSS? I do not know the corresponding CSS styles, but you could use a named style:
The named style will only be used for tables of class "namedstyle". Obviously you can and should change that to be something more descriptive of what you are doing...
put style definitions here...
September 18th, 2003, 09:31 PM
that doesn't work.
September 19th, 2003, 01:29 AM
try moving the class to the td or tr
September 19th, 2003, 06:12 AM
That works for everything but the cellspacing, i have no idea how to space in CSS. What you can do, it go and put that in your head tags, and just put the cell spacing in your table tags,
border: #EBEEF3 solid medium}
hope that helps,
"A building has integrity just like a man. And just as seldom."