richie19rich77 Posted March 22, 2007 Share Posted March 22, 2007 Hi Everyone, As the tilte says I am having trouble Centering Layers Between Different Screen Resolutions. I have created a simple top layer that is 1024px in width, the layer sits on the left hand side of the screen and goes all the way across for a display resolution of 1024x768. But if I change my display Res to anything higher, I have a white space on the right hand side. Is there a way to center the layer, and it moves depending on the screen res. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/43902-centering-layers-between-different-screen-resolutions/ Share on other sites More sharing options...
cmgmyr Posted March 22, 2007 Share Posted March 22, 2007 why don't you use width:100%;? Any div that you want centered in that first div you can use: margin: 0px auto; hope this helps Quote Link to comment https://forums.phpfreaks.com/topic/43902-centering-layers-between-different-screen-resolutions/#findComment-213124 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.