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 > error in IE7 when zooming into CSS div percentage
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
error in IE7 when zooming into CSS div percentage

Réponse
 
LinkBack Outils de la discussion
Vieux 21/03/2008, 20h35   #1
obaqueiro
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut error in IE7 when zooming into CSS div percentage

Hello, I got a page with a div element with the following style:
div.content{

position: relative; top:8.5%; left: 40%;
height:91.5%; width:59%;
font-family: "georgia", arial, verdana;
color:black;
background: url(images/gradient2.png);

overflow: auto ;
padding-bottom: 0px;
padding-left:5px;
padding-right:5px;
margin: 0px 0px;
font-size: 90%;
font-weight:normal;

}


The div scales without problems in Firefox 2.x, 3 and Opera, however
in IE7 it just stays "in the same place" when scaling down and does
not shrink properly (it takes more space than the adequate. I have
tried with absolute instead of relative positioning without success. I
have also tried with ems units.

Is there anything I am doing wrong?
  Réponse avec citation
Vieux 21/03/2008, 22h50   #2
Bergamot
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: error in IE7 when zooming into CSS div percentage

obaqueiro wrote:
>
> div.content{
> position: relative; top:8.5%; left: 40%;
> height:91.5%; width:59%;
>
> Is there anything I am doing wrong?


You are no doubt making some incorrect assumptions about what relative
positioning does.
http://brainjar.com/css/positioning/

Even if you used absolute positioning I bet it would still be the wrong
thing to do. It often is.

Instead of posting a code snippet and expecting us to fix what you think
your problem is, post a URL showing your attempt so we can get a better
idea of what you're really trying to accomplish. It will be a lot easier
to point you in a better direction.

--
Berg
  Réponse avec citation
Vieux 26/03/2008, 19h14   #3
obaqueiro
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: error in IE7 when zooming into CSS div percentage

On Mar 21, 9:50pm, Bergamot <berga...@visi.com> wrote:
> obaqueirowrote:
>
> > div.content{
> > position: relative; top:8.5%; left: 40%;
> > height:91.5%; width:59%;

>
> > Is there anything I am doing wrong?

Thanks for your , sorry for posting in an incorrectly way. The
page I am having trouble with is:
http://www.wild-expeditions.co.uk/

As I told in the mail before, the design works very well in Firefox
and Opera browsers, however when zooming in or out in IE 7, one of
the Divs is misplaced.


Any is appreciated,

Thank you

> You are no doubt making some incorrect assumptions about what relative
> positioning does.http://brainjar.com/css/positioning/
>
> Even if you used absolute positioning I bet it would still be the wrong
> thing to do. It often is.
>
> Instead of posting a code snippet and expecting us to fix what you think
> your problem is, post a URL showing your attempt so we can get a better
> idea of what you're really trying to accomplish. It will be a lot easier
> to point you in a better direction.
>
> --
> Berg


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


É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,09146 seconds with 11 queries