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, 02:11 PM
Post #2





Guest






LOL. Okay, the overflow tells the div content wether you want the div to scroll or not. For example.

http://www.createblog.com/layouts/preview.php?id=17980
Do you see the main content area? It has a scrollbox. To do that, you add overflow:auto, and you have to define your height. This means that the height is defined. For example. If you make the height of the div 200px, and make the overflow:auto, this means the div heigh will never get larger than 200px in height, and will inflate a scollbar as you add more content.

http://www.createblog.com/layouts/code.php?id=18677
Do you see the content area in this div? The content does not have a defined height, which wont make it have a scrollbox. I set the height attribute to height:auto (meaning when you add more content, and more text, the div will continue to get larger and larger, and will never have a scrollbox) To do this, you add overflow-x:hidden.

Now for the z-index.
The z-index basically tells the browser which div you to appear ontop of which div.

For example. Your div image should be set to z-index:0 (this means the div will appear under all other divs) Now, for your content div. You should add z-index:1. This means your content div will appear ontop of your image div.
 

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: