Log In · Register

 

Help Topic Rules and Requirements


For a list of all requirements and guidelines pertaining to posting a new Help topic, please click here.

This Month's Contests | Hosts Looking for Hostees | Hostees looking for Hosts | Big Book of Resources

Submission Guidelines

Making a DIV Overlay Layout, Step by step
*This Confession*
post Jul 15 2006, 05:28 PM
Post #101





Guest






Note:This thread was updated and cleaned out on Febuary 26, 2007. Try to quote the post you are helping. Also please if you don't understand any of the steps, then please post a topic and don't reply in this one. If you just have one simple question (on a step or two) feel free to post it here.

Making a div

Version 1.0

Level : Step By Step
Written By: This Confession - Infinite.-Intercourse. Insurmountable

First:

Hiding your profile.

If you would like to have comments in your div. Please use this code.
http://www.createblog.com/scripts/script.php?id=376

If you wouldn't like comments to show use this code to hide your profile.
http://www.createblog.com/scripts/script.php?id=368

This will hide your whole profile, except for the ad.
Do not hide your ad, its against myspace rules. =]

Also yes, this coding and all of the coding can go in to your about me or who I'd like to meet


Second:

Customizing your profile.
http://www.createblog.com/forums/index.php?showtopic=84325

I suggest using the 3rd one down, it explains what all parts do and such.
But mostly all you need to do is do the background color, scrollbar colors, border colors.
and link colors and text properties.

Third:

Making your div's. [the fun part wink.gif]

Putting up your main image.
Upload it at http://www.imageshack.us

and then put it into this

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


Change the top and left to position where the image is.
And change the width and height to the same as the image.

I suggest making the top about 160-170px
So its right under the navigation bar more than likely.
Really Just mess with the numbers and such and you'll get the hang of it happy.gif

Forth:

Other Div area's

CODE
<div class="content" style="position: absolute; left:000px;  top:000px; width:000px; height:000px; overflow: auto;"><center>
CONTENT FOR DIV.
</div>


You can have as many of these as you want,
this is for all your other content.
Change the left and top for the positioning once again, you may want to make a estimate
and then just go check and see how much further it is away. Thats what most people do,
Just have patience and you'll be fine. happy.gif

Change the width and height for how big it is. Most of the time I just crop out one of the places
in photoshop off the image and then get the image size so I can see how big it is instead of roughing it.

PS- you can get rid of the <center> Its just there to center your text if you want it to be centered.

Fifth

Final Touches

For this you may just want to make some final touches
Putting the comments in to your div.
http://www.createblog.com/scripts/script.php?id=74

For the comments in to your div, a lot of people have problems with it.
Make sure you don't have anything that hides stuff, such as bottom links or
top links or it won't work. [it sucks but you get use to it]

Also, if your using the myspace player. Then you may want to hide it so it isn't peeking through any of your divs and covering some important stuff.
http://www.createblog.com/scripts/download.php?id=409


Any other questions, just ask happy.gif
But please if you have your problem on a myspace, then please provide a link and make sure your profile isn't private, if your profile is private then you won't recieve any help.



Positioning made easy?


quick lesson on "position: relative"

top: -45px = moves up 45px
top: 45px = moves down 45px
left: -15px = moves left 15px
left: 15px = moves right 15px

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




further explanation to someone that asked
http://www.createblog.com/forums/index.php?showtopic=157773

This post has been edited by micron: May 2 2008, 04:13 AM
 
 
Start new topic
Replies
IVIike
post Jan 17 2010, 03:25 PM
Post #102


Hey, I'm Mike
******

Group: Staff Alumni
Posts: 1,272
Joined: May 2006
Member No: 406,241



you can set your overflow to visable
CODE
overflow: visable;
b/c the transparent scroll bar will not work in firefox.
 

Posts in this topic
This Confession   Making a DIV Overlay Layout   Jul 15 2006, 05:28 PM
Anarchy   ^Try using different positioning codes. For Firefo...   Nov 21 2008, 11:45 AM
bhulan   ^^THANKS,i'll try! :DD   Nov 21 2008, 11:52 AM
Anarchy   Sure, no problem.   Nov 21 2008, 11:53 AM
shanahk   PLEASE HELP ME Something is wrong with my div bu...   Nov 22 2008, 02:54 AM
bhulan   hey,i cannot make it. Can anybody check whats wro...   Nov 23 2008, 04:19 AM
xdanky   I have the Div image. I'm getting the css codi...   Dec 28 2008, 04:36 PM
Anarchy   Look for these bits in your coding: CODEtop:#...   Dec 29 2008, 05:39 AM
xdanky   i didnt code it out yet i have the div overlay ima...   Dec 29 2008, 03:34 PM
loveofmusic23   The tutorial was very helpful and I liked doing th...   Jan 3 2009, 12:24 PM
trapsuperstar904   Alright, So I've never really made a myspace l...   Jan 5 2009, 09:27 PM
msclumsieee   Ok so i made a layout on myspace... i dunno becaus...   Jan 9 2009, 02:03 AM
Mike   Use just this bit: CODE<table id="Table_0...   Jan 9 2009, 04:26 PM
msclumsieee   Thank you! :)   Jan 9 2009, 07:05 PM
Mike   No problem.   Jan 9 2009, 07:08 PM
HellsBeauty   I'm having problems with a DIV layout.. I can...   Jan 18 2009, 04:35 PM
viviangoesrawr   OMG THANK YOU SO MUCH!!!   Feb 7 2009, 03:27 PM
tink919   OK so i spent about 34 hours on a layout making it...   Mar 8 2009, 10:37 AM
schizo   ^The coding is a total mess. I would recommend may...   Mar 18 2009, 05:42 PM
renee31313   what does a div layout look like? and can you us...   Apr 27 2009, 04:15 PM
manny-the-dino   ^Examples of DIVs can be found here and yes you ca...   Apr 27 2009, 05:09 PM
rudy559   WhAT if YOU oNLy WAnt liKE 2 Or 3 bOXeS AND tHATS ...   May 2 2009, 02:19 PM
akhaze   Okay, so I made this DIV layout earlier today, and...   May 4 2009, 01:05 AM
xxrawralexxrawrxx   w0w im gonna soundz soo stupid how do i get an ima...   May 13 2009, 10:06 PM
Mike   Use this code: CODE<a href="LINK"...   May 16 2009, 05:36 AM
xxrawralexxrawrxx   +thxx   May 16 2009, 07:24 AM
ranmori   simulation credit auto Voted   Jun 1 2009, 01:49 AM
25kati   hey can you help me code my iv please.. i tried bu...   Jun 13 2009, 03:14 PM
iBwapU   hey, can you tell me where to put this code in the...   Jun 30 2009, 12:44 AM
Mikeplyts   ^That goes in your I'd Like To Meet section or...   Jun 30 2009, 01:45 AM
RealArtDesigns   this is a joke... i knwo alitle of css but i dont...   Jun 30 2009, 01:12 PM
Mikeplyts   ^ are you talking about this? Defining the a tag ...   Jun 30 2009, 02:37 PM
RealArtDesigns   yeah but can you make a link with CSS? i knwo the...   Jun 30 2009, 08:48 PM
Mikeplyts   Can you give an example or a link?   Jul 1 2009, 02:14 PM
choochookitty   Hi. I feel kinda stupid for posting this, but I ne...   Jul 29 2009, 04:02 AM
choochookitty   Also, thanks for any help!   Jul 29 2009, 04:30 AM
mychael   PROFILE 1.0 IS OFFICIALLY GONE.....CAN DIV OVERLAY...   Aug 6 2009, 08:37 AM
madelynemadness   First of all, thank you so much for this tutorial....   Aug 16 2009, 06:07 PM
SunshineSpine   Okay, so I was trying to make the links for each t...   Sep 25 2009, 09:26 AM
karmakiller   ^ Are you referring to this div? CODE<div clas...   Sep 25 2009, 04:09 PM
SunshineSpine   QUOTE(karmakiller @ Sep 25 2009, 05:09 PM...   Sep 29 2009, 03:27 PM
iPityForiPodRIPJoe   Please Help! Okay, I've managed to hide my...   Sep 26 2009, 12:12 AM
laydieeh   How Do You Take Off Scroll Bars They Show Up In Fi...   Oct 4 2009, 07:03 PM
IVIike   you can set your overflow to visable CODEoverflow...   Jan 17 2010, 03:25 PM
2 Pages V  < 1 2


Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: