Log In · Register

 
How do i keep my layout all align, even on different screen resoloutions
tigerlillylei
post May 11 2009, 02:03 PM
Post #1


Newbie
*

Group: Member
Posts: 1
Joined: May 2009
Member No: 727,580



hi,..
I have been following the tutorial on makin a layout for a band myspace,.. but everytime i view my myspace in different screen resoloutions my banner and contact menu moves over to the right,.. how do i stop this??
click here to see,.. www.myspace.com/columbianortheast
thanx sooo much for ur help,..

 
 
Start new topic
Replies (1 - 1)
fixtatik
post May 11 2009, 09:14 PM
Post #2


Senior Member
******

Group: Member
Posts: 1,237
Joined: May 2008
Member No: 648,123



i'm going to take a wild guess and say it's probably because you're using fixed positioning (it would be easier if you also provided the codes you're using).

instead of positioning elements like this:
CODE
.div_name { position:absolute; left:##px; top:##px; }

try to do it like this:
CODE
.div_name { position:absolute; left:50%; top:##px; margin-left:##px; }

the left:50%; will start the left side of an element in the center of your page. to move it left or right of the center, change the margin-left:##px; to your liking. a negative number will move it left, and a positive number will move it right.
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: