Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Template design and Front-End Code

Post Reply
 
Thread Tools
  #1  
Old 02-04-2008, 07:40 AM
xact Offline
pp regular
 
Join Date: Oct 2007
Posts: 46
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.



How can I fix this?
Reply With Quote
  #2  
Old 02-04-2008, 09:02 AM
austriaka's Avatar
austriaka+ Offline
Team Pixelpost
 
Join Date: Nov 2006
Location: Germany
Posts: 1,175
Send a message via ICQ to austriaka Send a message via AIM to austriaka
try to replace the "fixed" in #header by absolute
or wrap a div around which is absolute
__________________
Uh!log Photoblog
My Addons
Reply With Quote
  #3  
Old 02-04-2008, 10:24 AM
xact Offline
pp regular
 
Join Date: Oct 2007
Posts: 46
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.
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 01:52 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs