Log In · Register

 
 
Closed TopicStart new topic
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?
 
YourSuperior
post Jul 12 2007, 10:25 PM
Post #2


;)
*******

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



You want text areas to put codes in? Or a div to put content in?
 
*karmakiller*
post Jul 12 2007, 10:26 PM
Post #3





Guest






Moved to Myspace Support. (Make sure you check pinned topics before posting in this subforum.)

Have you checked the pinned topics?
http://www.createblog.com/forums/index.php?showtopic=97397
http://www.createblog.com/forums/index.php?showtopic=142922

It could just be a myspace error.
 
GunsNRachel
post Jul 13 2007, 09:37 AM
Post #4


Senior Member
****

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



QUOTE(Alvin @ Jul 12 2007, 11:25 PM) *
You want text areas to put codes in? Or a div to put content in?


Sorry, I meant I want a div to put content in.
QUOTE(karmakiller @ Jul 12 2007, 11:26 PM) *
Moved to Myspace Support. (Make sure you check pinned topics before posting in this subforum.)

Have you checked the pinned topics?
http://www.createblog.com/forums/index.php?showtopic=97397
http://www.createblog.com/forums/index.php?showtopic=142922

It could just be a myspace error.

I checked the pinned topics, and those aren't really helping me. And I'm not sure about it being a myspace error. I guess that could be it.
 
YourSuperior
post Jul 13 2007, 04:05 PM
Post #5


;)
*******

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
 

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