Thanks. I just want to try the abilities of CSS without float.

On Wed, Sep 17, 2008 at 4:37 PM, Michael Adams
<[EMAIL PROTECTED]>wrote:

> On Wed, 17 Sep 2008 15:31:31 +0800
> Came this utterance fomulated by ray to my mailbox:
>
> > Hi,
> >
> > 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?
> >   <div style="border:2px solid red;">
> >     <div style="width:30%;height:200px;background:AntiqueWhite;">
> >       block box
> >     </div>
> >   </div>
> > Maybe a silly question, Could somebody tell me? Thanks in advance.
>
> In your outer div add "text-align: right;"
> In your inner div you may need to add auto left and right margins
> "margin: 0 auto;"
> If you have other content in the outer div you may need a mid div with
> the text-align and width of 100%.
>
> Why was float not an option?
>
>
> --
> Michael
>
> All shall be well, and all shall be well, and all manner of things shall
> be well
>
>  - Julian of Norwich 1342 - 1416
> ______________________________________________________________________
> 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/
>
______________________________________________________________________
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