Pixelpost Forum

Pixelpost Forum (http://www.pixelpost.org/forum/index.php)
-   Template design and Front-End Code (http://www.pixelpost.org/forum/forumdisplay.php?f=20)
-   -   CSS+IE strange behaviour (http://www.pixelpost.org/forum/showthread.php?t=7846)

xact 02-04-2008 07:40 AM

CSS+IE strange behaviour
 
I'm trying to create a new template and I'm having a small difficulty when I try to view it with Internet Explorer 7.

The .css looks like this:

Code:


#header{
        position: fixed;
        top: 0px;
        width: 99%;
}

#header a,
#header a:link,
#header a:visited {
        color: #3F83A2;
        text-decoration: none;
        border: 0px;
       
}

.leftelement {
  position: absolute;
  left: 0;
  width: 49%;
  text-align:left;
  }

.rightelement {
  position: absolute;
  right: 0;
  width: 49%;
  text-align: right;
  }

The .html looks like this:

Code:

                <div id="header">
                        <div class="leftelement">       
                                       
                                </div>
                        <div class="rightelement">
                                        <LINK_TO_PAGED_ARCHIVE>|
                                        <a href="index.php?x=about" title="about">about</a> |
                                        <a href="#" onclick="setActiveStyleSheet('light'); return false;"><img src="templates/existence/images/style_light.gif" alt="light style" border="0"/></a>
                                        <a href="#" onclick="setActiveStyleSheet('dark'); return false;"><img src="templates/existence/images/style_dark.gif" alt="dark style" border="0"/></a> |
                        </div>
                </div>

link

When IE7 is not maximized, everything is ok. When maximized, the links in the upper-right corner flies outside the screen. Sometimes I can see only two or three letters from the first link. This behaviour is only on IE, firefox works just fine.

http://img220.imageshack.us/img220/5073/ppie1pz8.th.jpg http://img88.imageshack.us/img88/8878/ppie2dq4.th.jpg

How can I fix this? :(

austriaka 02-04-2008 09:02 AM

try to replace the "fixed" in #header by absolute
or wrap a div around which is absolute

xact 02-04-2008 10:24 AM

Solved. Thanks for the feedback, you gave me the idea to play with the "position" and the solution was to set "position: fixed;" for .rightelement in the css file.


All times are GMT. The time now is 02:32 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.