Great! Your solution is what I want. I have never used such "auto" word.
Thank you.

On Wed, Sep 17, 2008 at 7:05 PM, Gunlaug Sørtun <[EMAIL PROTECTED]> wrote:

> ray wrote:
>
>  If I set a width for a block box within a containing block, for example
>> 30%, the block box will be aligned with the left edge of the containing
>> block. Is it possible to align it with the right edge of the containing
>> block, without the use of float?
>>
>
> The addition of...
>
> margin: 0 0 0 auto;
>
> ...on the (inner) block box will align it right in its container.
> The auto-margin will (of course) keep the space on the left side of the
> block box clean, same as if the block box was aligned left (default) or
> center (with auto-margins on both sides).
>
> regards
>        Georg
> --
> http://www.gunlaug.no
>
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to