Posts: 18
Name: Jon
Location: Southern California
|
Couple items I notice immediately are:
IE does not recognize MIN or MAX heights/widths.
The code you have provided renders differently cross browsers, so unless you omitted some of your CSS you need to zero-out these default settings which cause these errors - usually most annoying and apparent in IE.
Your actual image is 1424 height x 2000 width. Based on the width you have allowed, this image would always appear off-center even if somene actually had their screen resolution set to accommodate a view port that large.
My suggestion would be to place the image in the CSS as a background of the main divide, in this case #container. That way you would not have to use absolute positioning. There are several sticky threads posted in the lobby of the CSS forum that discuss issues inherent with using absolute which doesn't seem necessary for what you're after.
This quite possibly could create other issues for you, but it opens up more options for solutions.
CSS like...
Code:
#background {
height:130%;
width:130%;
margin-left: auto;
margin-right: auto;
border: 0;
margin: 0;
padding: 0;
background: url(image/background.jpg) center center no-repeat;
}
HTML change to the #background divide, opposed to the whole #container. This way, your text will sit on-top of the image.
Code:
<div id="background">
<div id="menu">
<h1><a href="#">people</a></h1>
<h1><a href="#">fabrics</a></h1>
<h1><a href="#">stats</a></h1>
<h1><a href="#">resources</a></h1>
</div>
</div>
*simultaneous post with vangough.
Last edited by LoganKonlan; 04-29-2009 at 06:32 PM..
|