Afficher un message
Vieux 29/04/2008, 08h43   #3
Ben C
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: div presentation order

On 2008-04-28, André Wagner <andre.nho@gmail.com> wrote:
> Hello,
>
> can I change the order in which the divs are presented using CSS?
>
> For example, lets say I have this page
>
><div class="A"> Div A </div>
><div class="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?


No. The only real way to do it is with positioning (you could also use
absolute positioning), but for anything but a very simple page that will
be very difficult to manage.

More feasible would be to pull the DOM tree apart with scripting and put
it back together again in a different order.
  Réponse avec citation
 
Page generated in 0,05092 seconds with 9 queries