Jump to content

DIV Centered on Different Resolutions --- help


Recommended Posts

Guest joiedesign
Posted

I am having the problem of not having my div centered on different size resolutions. I am designing on a 1440x900 and when I look at the files on any other screen, it shifts the div. Here is the CSS - I have tried looking on forums and tutorials and I can't figure this out.

 

 

@charset "utf-8";
/* CSS Document */

body { 
   background-image:url(../images/background1.jpg);
   background-attachment:fixed;
   background-repeat:no-repeat;
   background-position:top;

}

#content1 {
   position:absolute;
   height:182px;
   width:366px;
   top:.5em;
   bottom:.5em;
   left:.5em;
   right:.5em;
   margin:0-auto;
   z-index:1;
   background-color:#33CC99;
   left: 515px;
   top: 148px;

}



#nav {
   position:absolute;
   left:628px;
   top:423px;
   width:363px;
   height:22px;
   z-index:2;
   font-family:"Microsoft Sans Serif";
   font-size:24px;
   font-style:normal;
   color:#191c35;


}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...