centering div profile, for different screen resolutions |
centering div profile, for different screen resolutions |
![]()
Post
#1
|
|
Senior Member ![]() ![]() ![]() Group: Member Posts: 48 Joined: Jan 2006 Member No: 357,932 ![]() |
my div profile looks fine on my screen (19" monitor, 1152 x 864) but when the resolution goes down, my profile moves right. Like when its viewed on a 15" monitor its off to the right, not centered. How can i make the page stay centered no matter what the resolution is? Thanks
|
|
|
![]() |
*WHIMSICAL 0NE* |
![]()
Post
#2
|
Guest ![]() |
CODE <div class="content" style="position:absolute; z-index:2; left:50%; top:0%; margin-left:-175px; margin-top:150px; width:210px; height:210px;border-style:solid; border-width:0px; border-color:000000;overflow:auto;"> You'll have to mess around with the positioning of the code, though, because I believe it starts from the center. Unlike finding the coordinates in a paint program which starts starts at zero. |
|
|
![]() ![]() |