You are here: Re: div, align and css « HTML « IT news, forums, messages
Re: div, align and css

Posted by Ben C on 08/09/07 16:46

On 2007-08-09, skibud2 <mike.halloran@gmail.com> wrote:
> Hi All,
>
> How can I do the equivalent to the following in CSS.
>
> This aligns the table to the right of the div
><div align = "right">
> <table> ..</table>
></div>
>
>
> The CSS style:
> .right {text-align: right;}
> does not work for non text.

No, and there is no standard CSS property that does. Well actually,
that's not quite true, you _could_ use "direction: rtl" on the div,
which will cause the table to go to the right. But I wouldn't advise
using that unless the text is actually in Arabic or another rtl
language. It could well have undesired side-effects.

> Am I stuck with putting the align attribute directly in? I don't want
> to use float because this div is within a table.

So what? You can float things inside table cells, that's no problem.
Best to float: right the table, that's the CSS way to do this.

 

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

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