|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
how do you create this in css?
hi,
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. many thanks.
__________________
http://www.insightsws.com/ Professional low cost offshore website design and development. |
|
#2
|
||||
|
||||
|
Are the 'other instances' on a different table or on the same table? If they are on the same table, try TBODY.
|
|
#3
|
|||
|
|||
|
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. |
|
#4
|
||||
|
||||
|
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:
Code:
<style>
.namedstyle {
put style definitions here...
}
</style>
<table class="namedstyle">
...
</table>
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... |
|
#5
|
|||
|
|||
|
hi,
that doesn't work. ![]() |
|
#6
|
|||
|
|||
|
try moving the class to the td or tr
for example: td class=" tr class=" |
|
#7
|
||||
|
||||
|
PHP Code:
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, hope that helps, --Lone~
__________________
"A building has integrity just like a man. And just as seldom." Rand |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > how do you create this in css? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|