PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.info.authoring.html > div presentation order
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
div presentation order

Réponse
 
LinkBack Outils de la discussion
Vieux 29/04/2008, 00h28   #1
André Wagner
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut div presentation order

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?

Regards,

André
  Réponse avec citation
Vieux 29/04/2008, 04h45   #2
Patricia Aldoraz
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: div presentation order

On Apr 29, 9:28 am, André Wagner <andre....@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?
>
> Regards,
>
> André


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="float: right; width:50%;background: red;"> Div A </div>
<div style="float: left; width:50%;background: green;"> Div B </div>

This gives an appearance of presentational reorder!



Here is some reordering
  Réponse avec citation
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
Vieux 29/04/2008, 12h08   #4
André Wagner
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: div presentation order

> 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.


Ok, thank you for both sugestions. Both were good and very ful,
and even if wasn't exactly what I was looking for, they'll !

Regards!

André
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 14h24.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08650 seconds with 12 queries