You are here: Re: Align a table to the right with CSS « HTML « IT news, forums, messages
Re: Align a table to the right with CSS

Posted by Cristian on 10/21/07 16:10

On 21 oct, 09:49, "Safalra (Stephen Morley)" <use...@safalra.com>
wrote:
> On Sun, 21 Oct 2007 15:35:02 -0000, Cristian wrote:
> > Hello, I wanted to know if it is possible to align a table to the
> > right with CSS?
> > I use "margin-left: auto; margin-right: auto;" to center tables, but I
> > don't know how can I change those parameters to make it go to the
> > right.
>
> Just use margin-left:auto (and make sure it's not having margin-right set
> to auto by another less specific rule). If you want the content to flow
> around it, you can use float:right.
>
> --
> Safalra (Stephen Morley)
>
> Sortable Tables In JavaScript:http://www.safalra.com/web-design/javascript/sortable-tables/

Thank you so much!
I added this "margin-left: auto; margin-right: 0px;" and the table
went to the right, just the way I wanted.

Bye!

 

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

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