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 David Dorward on 06/22/06 06:29

rosdi 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">
> <!--

Two reasons, first - you commented out your stylesheet. So it will be
ignored (unless you're serving your XHTML as text/html, in which case -
what's the point?).

Second, tables are different when it comes to layout. Try border-spacing
instead.

http://www.w3.org/TR/CSS2/tables.html#separated-borders

I don't think anything exists that will work in MSIE though.


--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is

 

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

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