Log In · Register

 
I don't understand how to make divs at all..., Can someone help me make one?
gotryce22
post Jul 23 2007, 01:28 PM
Post #1


Member
**

Group: Member
Posts: 25
Joined: Jul 2007
Member No: 544,574



I'm new to this forum, and I read the pinned topics, but I don't understand a single thing they say. I want to make a page that has a pic of my choice as the background, my "About Me" info towards the right of the page, links towards the left of the page and maybe a flash from myflashfetish.com or something to the bottom of the links. If this isn't too much to ask, can someone help me with this?
 
 
Start new topic
Replies
*SinfullySweet*
post Jul 23 2007, 01:55 PM
Post #2





Guest






CODE
<div class="bg" style="position: absolute; left:0px; top:0px; width:000px; height:000px; overflow: hidden;">
<img src="IMAGEURLHERE">
</div>


Okay. The left property, its best that you either make it 50% or 0% Why? Making the left attribute 50% will make the div image centered in all screen resolutions. Since you want the image centered, you're probably going to want to use 50% for the left attribute.

Now to position the div. You have to use margins to position it, since you are using the absolute property. Use this in the div code

CODE
margin-left:##;


By adding positive numbers to the margin-left, you make the div image move to the right. For example. If you add 200px to margin-left:200px, it will make the div image move to the right, but if you want it move to the left, you have to use a negative number of pixels.


For the top property, that just means how far down the image will go, depending on how many pixels you add. For example.

This is the top property
CODE
top:90px;


By adding 90px, your div image will move down 90pixels from the top. You can adjust the top property as much as you want, just dont cover the myspace ad.

If you still dont understand

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
gotryce22   I don't understand how to make divs at all...   Jul 23 2007, 01:28 PM
SinfullySweet   I can help you with this. Which parts aren't ...   Jul 23 2007, 01:31 PM
gotryce22   Well, on this topic: http://www.createblog.com/for...   Jul 23 2007, 01:36 PM
SinfullySweet   Okay. The second step in the pinned topic is all ...   Jul 23 2007, 01:41 PM
gotryce22   Okay, that clears up that part. What about the thi...   Jul 23 2007, 01:50 PM
SinfullySweet   CODE<div class="bg" style="positio...   Jul 23 2007, 01:55 PM
gotryce22   So now that all that is done, how do I start on ma...   Jul 23 2007, 02:00 PM
SinfullySweet   Correct, the positioning is the same. CODE<di...   Jul 23 2007, 02:04 PM
gotryce22   You guessed right...   Jul 23 2007, 02:05 PM
SinfullySweet   LOL. Okay, the overflow tells the div content wet...   Jul 23 2007, 02:11 PM
gotryce22   All right, so that's done, but now I need to k...   Jul 23 2007, 02:18 PM
SinfullySweet   You can get the links by right clicking a defualt ...   Jul 23 2007, 02:25 PM
gotryce22   Okay, I think I'm good to go. Thank you so muc...   Jul 23 2007, 02:34 PM
SinfullySweet   No problemo. If you need any more help, feel free...   Jul 23 2007, 02:35 PM


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