|
Posted by Patricia Aldoraz on April 28, 2008, 11:45 pm
Please log in for more thread options
> Hello,
>
> can I change the order in which the divs are presented using CSS?
>
> For example, lets say I have this page
>
> <div class=3D"A"> Div A </div>
> <div class=3D"B"> Div B </div>
>
> and I want it to be presented in the webpage like this:
>
> Div B
> Div A
>
> I know you can do that with complex schemes like relative positioning
> and negative top, but there's any simple and straightforward way to do
> that?
>
> Regards,
>
> Andr=E9
You know, of course, that you can change the order in the html and
that this is simple. You know that you can change the order via
positioning but that this is regarded by you as not simple. You want
no css positioning, no reordering in the html but you want reordering.
Will you accept absolute positioning? What about floats:
<div style=3D"float: right; width:50%;background: red;"> Div A </div>
<div style=3D"float: left; width:50%;background: green;"> Div B </div>
This gives an appearance of presentational reorder!
Here is some reordering
|