Log In · Register

 
I can't get this for the life of me., Div text area thing.
GunsNRachel
post Jul 12 2007, 10:11 PM
Post #1


Senior Member
****

Group: Member
Posts: 292
Joined: Jul 2007
Member No: 545,047



Alright, so I recently started making divs on myspace. I was using a certain way of coding it and it was super easy and everything worked out wonderful. Well, with my luck it decided to stop working (Heck if I know why!), so now I'm stuck trying to find a new way to code layouts. So far, I've got the background and everything, and I've got the image I made in photoshop. Now I can't figure out how to get a text area div thing (I guess thats what it is?) on it. I've tried a million codes, but I can't get it to work. Can someone give me a code for it?
 
 
Start new topic
Replies
YourSuperior
post Jul 13 2007, 04:05 PM
Post #2


;)
*******

Group: Staff Alumni
Posts: 9,573
Joined: Feb 2005
Member No: 99,124



Okay, so you want a div to put content in? Try the code below. Margin left moves your div right or left. Margin top moves your div up or down. Edit the width and height of your div. Erase the overflow: auto if you DON'T want scrollbars on your div.

CODE

<style type="text/css">
div.content {
position: absolute;
margin-left:0px;
margin-top: 0px;
width: 000px;
height: 000px;
overflow: auto;
}
</style>

<div class="content">
PUT YOUR CONTENT HERE
</div>



quick lesson on "position: absolute"


top: 0% = moves to top of page
top: 50% = moves to middle of page
top: 100% = moves to bottem of page
left: 0% = moves to left of page
left: 50% = moves to center of page
left: 100% = moves to right of page
margin-left: -15px = moves left 15px
margin-left: 15px = moves right 15px
margin-top: 45px = moves down 45px
margin-top: -45px = moves up 45px
 

Posts in this topic


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