|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
...Cell Spacing & Cell Pading...
Hello
HRU, plz let me know how i can set cell pading & Cell spacing using css, as soon as possible. Thanks & Regards Faisal |
|
#2
|
|||
|
|||
|
Code:
<html>
<style>
.tableStyle {
cellspacing:1;
}
</style>
<body>
<table class="tableStyle">
<tr><td>foo</td><tr>
<tr><td>bar</td><tr>
</style>
</body>
</html>
|
|
#3
|
|||
|
|||
|
Hi Dear
Y did not mention yr name Thanks yr prompt response, i applied that code on table that work when i do cellspacing 0 in this case table not come on 0 spacing plz check out that Regards Faisal |
|
#4
|
||||
|
||||
|
Quote:
that isn't valid css, first of all there is no attribute named cellspacing in w3c css specs and secondly you always have to specify a lenght unit on the value, unless the value is 0 then its optional, you can use the properties: border-collapse: collapse; border-spacing: 0; http://www.w3.org/TR/REC-CSS2/tables.html#borders |
|
#5
|
|||
|
|||
|
Sorry, it was in my O'Reilly book. And it says its been around since CSS 2.
|
|
#6
|
||||
|
||||
|
See 'cell-spacing'. Note the hyphen.
cheers, gary
__________________
There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing. My html and css workshop, demos and tutorials. Ask a better question, get a better answer. |
|
#7
|
|||
|
|||
|
Hello
Dear AKH, Sorry again you did not mention your name, Thanks your right code i have done my requirement with the help of your code. Again thanks a LOT.... Regards Faisal |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > ...Cell Spacing & Cell Pading... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|