Log In · Register

 
can someone help me with a div overlay???
luvDBSK
post Jan 24 2009, 12:22 PM
Post #1


Newbie
*

Group: Member
Posts: 5
Joined: Mar 2008
Member No: 626,861



i just want to know if anyone knows how to center a div layout on myspace. right now its to the left and i want it centered. is that posible??
 
 
Start new topic
Replies
Mickey
post Jan 24 2009, 06:24 PM
Post #2


Treasure Pleasure
********

Group: Head Staff
Posts: 11,193
Joined: Oct 2005
Member No: 281,127



Here's a cleaner, clearer code for you to use:

CODE
<style>
.layout {position:absolute; height:250px; width:250px; top:500px; left:50%; margin-left:-500px;}
</style>

Replace both 250's in the height and width properties to edit its size then replace both 500's in the top and margin-left properties to edit its position. For the margin-left bit, make sure you leave the minus sign alone unless you want to move it towards the right of your page.
 

Posts in this topic


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