Log in

View Full Version : Problem with layer's in page!



hologram
01-03-2009, 11:38 PM
Hello!
I have a problem with my site. I`ve build a site in macromedia cs2. Site looks like this http://isniqi.altervista.org/prova/
I have build this site all will layers (i mean insert>layot objects>layers) the reason is because i can move this layers in every part of page like an image. Its to easy to build great websites. But i have a problem because in my browser or in my dimensions of screen looks in center this web. But in others users or pc the site is not in center of page/browsers. It depends from the dimensions of screen to others pc. Can somebody tell me how to fix problem. To set the web in center to every one because it looks horrbile!

Thnx!

Nile
01-04-2009, 12:23 AM
Try adding:


margin: 0 auto;

To the container element, or:


margin-left: 45%;

hologram
01-04-2009, 12:30 AM
thnx for reply!

I have try this but it doesnt work =(

Nile
01-04-2009, 12:30 AM
Which div have you tried applying this effect to hologram?

hologram
01-04-2009, 12:36 AM
in every div ?? because if i apply it in just one div, just selected div moved!

Nile
01-04-2009, 12:57 AM
I tried to remake it the best I could - it doesn't use layers anymore. If you want me to remake the nav to I would need to see how they show up.


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
* {
padding: 5px;
}
body {
margin: 40px 0 0 0;
font-family: Verdana
}
#container {
margin: 0 auto;
width: 45%;
height: auto;
padding-bottom: 50px;
background-color: #CCC;
}
#header {
margin: 10px auto;
width: 95.3%;
height: 115px;
background-color: #FFF;
color: #000;
font-size: 35px;
font-weight: bold;
padding-top: 10px;
}
</style>
</head>

<body>
<div id="container">
<div id="header">
Your name here
</div>
<div id="content">
<img src="http://www.dynamicdrive.com/forums/designfiles/logo.gif" width="297" height="42" />
</div>
</div>
</body>
</html>

hologram
01-04-2009, 01:10 AM
Oh great it works. But can u tell me how can u convert all layers i`ve used in my site to make looks like this. What should i change in css?

hologram
01-04-2009, 02:07 AM
another reply?