|
Posted by Philip on 06/22/06 03:28
In article <1150945449.713464.90210@g10g2000cwb.googlegroups.com>,
"rosdi" <rosdikasim@gmail.com> wrote:
> I tried to separate my table rows a few pixels away from each other,
> but my css below doest work, why?
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head>
> <style type="text/css">
> <!--
> tr {
> margin-bottom: 15px;
> }
> -->
> </style>
> </head>
> <body>
> <table width="100%">
> <tr>
> <td>row 1</td>
> </tr>
> <tr>
> <td>row 2</td>
> </tr>
> </table>
> </body>
> </html>
Try padding-bottom instead.
A couple of other comments (that you didn't ask for):
- The browsers that got confused if you didn't wrap your CSS in <--
comments --> are long gone. You don't need to do this anymore.
- For most people, XHTML sounds a lot more useful than it actually is.
HTML 4.01 Strict is often a better choice.
HTH
--
Philip
http://NikitaTheSpider.com/
Bulk HTML validation, link checking and more
Navigation:
[Reply to this message]
|