|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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? |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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 |
|
![]() |
| Outils de la discussion | |
|
|