You are here: Re: div inside td « HTML « IT news, forums, messages
Re: div inside td

Posted by Steve Pugh on 02/14/06 11:57

julian_m wrote:
> I'm just looking for a way to adjust the div's position on the cell
> which is actually containing it.
>
> <td class="tdcls"><div class="divcls">whatever</div></td>
>
> for instance, say that I want to render the div 20px below the top of
> the cell.

td.tdcls {padding-top: 20px;}
or
div.divclas {margin-top: 20px;}

The CSS box model is explained at:
http://www.w3.org/TR/CSS21/box.html
and the CSS table model at:
http://www.w3.org/TR/CSS21/tables.html

Steve

 

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

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