Re: layers
| From: | Jussi Mäkilä | Date: | Wed, 22 Dec 2004 03:57:41 +0000 |
| Subject: | Re: layers | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-204930@lists.php.net to get a copy of this message | ||
I think i had a similar kind of problem as you described here. I used
a layer as a container for the other layers that had the content in them.
Then i just centered the container and used absolute positionings on the
inner layers. The simplified code might look something like this:
<html>
<head>
<title>your site</title>
<style type="text/css">
body {
background-image: url("your_pic.jpg");
background-attachment: scroll;
background-position: center top;
}
</style>
</head>
<body>
<div id="container" style="margin:auto;position:relative;">
<div id="your layers" style="position:absolute">
<!-- content -->
</div>
<div id="your layers" style="position:absolute">
<!-- content -->
</div>
<div id="your layers" style="position:absolute">
<!-- content -->
</div>
</div>
</body>
</html>
This doesn't however remove problems with vertical centering. For that I
have no advise at this point...