• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Website Header

WarOfTheTitans

Active Member
Joined
Feb 3, 2012
Messages
430
Reaction score
37
My header that I've done is like this in my resolution (1680x1050):
homepagebug.png


But when I change resolution, it goes like this (1440x900):
homepagebug2.png

Not all the way to right but it don't look like it was before...

Here is the CSS:
PHP:
#mainPictures {
	margin-top: 2px;
	margin-left: 23%;
	width: 925px;
	float: left;
  position: relative;
}

and i put it like this almost on the buttom of my layout.php:
PHP:
	<div id="mainPictures">
		<a href="index.php?subtopic=latestnews"><img src="layouts/custom/images/headerp/picall2.gif"/></a>
	</div>
I want it to be there in the right place even when I change resolution (as the conent)...
Rep+ thanks in advance :)
 
Thanks alot! but it don't fit the content position. It works now even when I change resolution. Can I change it like three or four px to left? And still change resolution?
 
What you could do, and probably should do, is to use what we refer to as a wrapper.

HTML:
<div class="wrapper">
     <div id="mainPictures">
          <img />
     </div>
</div>

PHP:
.wrapper {
     position: relative;
     margin: 0px auto;
     width: 926px;
}
.wrapper #mainPictures {
     position: absolute;
     left: -5px;
}
 
I did it like this:
HTML:
#mainPictures {
     margin: 2px auto 0px;
     width: 910px;
}
I reduced the picture's width. I tested with the new resolution too. It worked, thanks :)
 
Back
Top