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.CSS > Is it possible to vertical align in a div?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Is it possible to vertical align in a div?

Réponse
 
LinkBack Outils de la discussion
Vieux 28/03/2008, 21h21   #26
Ben C
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Is it possible to vertical align in a div?

On 2008-03-28, Dave Rado <dave.rado@dsl.pipex.com> wrote:
> Hi Ben
>
> On 27 Mar, 22:43, Ben C <spams...@spam.eggs> wrote:
>
>> Moving things with position: relative is a bit risky, because in a sense
>> they don't really move, they just get rendered offset from their real
>> position as it were at the last minute. The space they occupy and their
>> effect on the positions and sizes of sibling and parent boxes is just
>> the same as if you didn't offset them.
>>
>> In this case, it might have been better to give body margin-top: 80px or
>> something instead, because that moves everything down properly.

>
> Except that doing that also moves the three icons above the document
> page down to below the top of the document page, when I try it - see
> my mock-up at http://tinyurl.com/2j68p3 (the mock-up showing how I
> want it to look is at http://tinyurl.com/3yqf5t). This was my original
> reason for setting the DocumentPage div to have a relative position.
>
> If I make div.TopOfPageIcons have an absolute position instead of a
> relative one (which does fix the above problem), it stops being
> centred.
>
> What do I need to change to my code at http://tinyurl.com/2j68p3 to
> make it look like http://tinyurl.com/3yqf5t ?


Just remove top: 76px from div.TopOfPageIcons.
  Réponse avec citation
Vieux 28/03/2008, 22h26   #27
Dave Rado
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Is it possible to vertical align in a div?

On 28 Mar, 20:21, Ben C <spams...@spam.eggs> wrote:

> Just remove top: 76px from div.TopOfPageIcons.


Or better still (because that made the icons touch the top of
"document page" instead of being slightly above it), replace it with
top: -8px.

Many thanks, Ben, you've been a huge .

Dave
  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 18h08.


Édité par : vBulletin® version 3.7.3
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 ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10222 seconds with 10 queries