You are here: Re: why can't I set a tr margin? « HTML « IT news, forums, messages
Re: why can't I set a tr margin?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация