Log In · Register

 
simple div overlay
*disco infiltrator*
post Aug 16 2005, 12:35 PM
Post #1





Guest






Here's a simple Myspace div overlay.

For your CSS, use one of the CSS stylesheets already provided. Put that in your "About Me".

For your content, you can use this. Put it in "Who I'd Like to Meet":

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

<div class="content" style="position: absolute; left:000px;  top:000px; width:000px; height:000px; overflow: auto;"><center>
lalalalala this is your content!
</div>


For the image, you only need to change the width and the height to fit your image.

For the content, you can change the class of the div, the left alignment, top alignment, width, height, and overflow. If you want the div to have a scrollbar, use this div code. Open the image in Microsoft Paint to get the alignments.



If I wanted the div to begin where the black dot is, I would use the paintbrush tool and place it where I want the div to begin. Keep the mouse there, and look in the bottom right corner for two numbers separated by a comma. The first number is your left alignment, and the second is your top.

If I wanted a div that continues down the page until it runs out of content, this would be my div code:

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

<div class="content" style="position: absolute; left:000px;  top:000px; width:000px; height:100%; overflow: visible;"><center>
lalalalala this is your content!
</div>


The only things that are changed are the height and overflow. Now all you need to worry about is the left alignment, top alignment, and width.

There you have it. _smile.gif


The following was contributed by tcunningham1589.


Description:

This code is used to make your simple div on your profile, whether you are using it for content, or a ghetto way to cover somthing up.



Code:


{ code used in INTERESTS section }
<style>
.div1 {
background-color:000000; color:000000;
border:0px solid; border-color:silver;
width:400px; height:100px; overflow:auto;
position:absolute; z-index:2; left:50%; top:0%;
margin-left:-250px; margin-top:150px;
visibility:visible;}
</style>

{ code used in MUSIC section }
<div class="div1">
content
</div>

*everything in bold is changeable


Positioning

Code:
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

For Myspace Band/Music Profiles:
http://www.createblog.com/forums/index.php...t&p=2624671

This post has been edited by digitalfragrance: Jul 12 2007, 01:04 AM
 

Posts in this topic
disco infiltrator   simple div overlay   Aug 16 2005, 12:35 PM
x3_mr_mak   wow great thanks! this will answer a lot of qu...   Aug 16 2005, 01:14 PM
DDOMINOO   Good work "Headphones."   Aug 16 2005, 02:52 PM
disco infiltrator   Thank you "DDOMINOO".   Aug 17 2005, 01:20 PM
Frankie   QUOTE(disco infiltrator @ Aug 17 2005, 1:20 P...   Nov 5 2005, 12:35 PM
D1SMANTLED   I think this should be closed or else people are g...   Aug 17 2005, 05:46 PM
disco infiltrator   The whole point of having this is so there's n...   Aug 17 2005, 05:50 PM
snoox   oh! domo. domoo. thanks "william"...   Aug 21 2005, 02:29 PM
disco infiltrator   QUOTE(idiotic_dork2719 @ Aug 22 2005, 12:40 A...   Aug 22 2005, 11:11 AM
toodlepops.   Oh, thank you so much, Sammi.   Aug 22 2005, 06:45 PM
toyo loco   Sammi you are awesome!   Aug 24 2005, 02:58 PM
idiotic_dork2719   i read this thing over and over and over again, an...   Aug 26 2005, 06:19 AM
disco infiltrator   QUOTE(purpleyes @ Aug 25 2005, 4:21 PM)hey sa...   Aug 28 2005, 09:25 AM
hotbabylisious   wow thats realli helpfull ~*myspace*~ ill ...   Aug 29 2005, 05:29 PM
william   ...this thread is open so you can ask specific que...   Aug 29 2005, 09:26 PM
without a name   i really dont get this can someone IM me and help ...   Aug 31 2005, 01:38 PM
NotWorthMyTime9   okay i just want to know if there is a div overlay...   Sep 1 2005, 07:14 PM
poisoncandygram   I don't understand where to put the div code.....   Sep 1 2005, 08:09 PM
electric shock   QUOTE(mrperson298 @ Sep 1 2005, 7:20 PM)whats...   Sep 3 2005, 03:48 PM
hiddenanger   ok i tried the code... but this is how my page tur...   Sep 12 2005, 12:26 AM
hottieondablock   That is awesome! Thank you soo much! <3   Sep 16 2005, 09:12 PM
ihrtbz   QUOTE(YourAveragexLoverx @ Sep 17 2005, 8:57 ...   Sep 20 2005, 08:01 PM
X_miss_kitty_X   i'm really having a tough time with this...if ...   Sep 21 2005, 05:08 PM
disco infiltrator   How much help could you all possibly need? This wh...   Sep 25 2005, 11:12 AM
Maestro   ^I agree! Go here for basic html: http://webmo...   Sep 25 2005, 12:17 PM
disco infiltrator   QUOTE(Slaytallideth @ Sep 28 2005, 5:28 PM)Hi...   Oct 11 2005, 07:31 PM
blankminded   yes it is. i jus used that site to shorten the URL...   Oct 12 2005, 06:32 PM
disco infiltrator   QUOTE(blankminded @ Oct 13 2005, 5:34 PM)i ha...   Oct 16 2005, 08:25 AM
Electrifying   OoOOo Nice tutorial! Awesome Job!   Oct 23 2005, 11:23 AM
disco infiltrator   QUOTE(Hayzz @ Oct 22 2005, 12:00 PM)All im co...   Oct 27 2005, 12:17 PM
partybiatch   i used the "hide profil" script and the ...   Oct 30 2005, 03:31 PM
liverysnap   I put in the code, and its fine in the preview but...   Nov 1 2005, 10:59 AM
hiiyas   i must be making this a lot harder than what it is...   Nov 3 2005, 02:40 PM
disco infiltrator   QUOTE(insomniac @ Nov 1 2005, 6:13 PM)i cant ...   Nov 7 2005, 11:17 PM
krn05   SO basically everything i need to make a Div Layou...   Nov 10 2005, 03:19 AM
downsouthposted   I really need help. Everytime I get it down right ...   Nov 12 2005, 05:04 PM
mysteriouscris   awesome tutorial..the best i've come across. I...   Nov 13 2005, 08:02 PM
disco infiltrator   QUOTE(Beyond Elite @ Nov 14 2005, 3:00 PM)I p...   Nov 15 2005, 10:26 PM
naked_zombie   this is just a quick question. is all this div ove...   Nov 20 2005, 01:29 AM
naked_zombie   QUOTE(naked_zombie @ Nov 19 2005, 10:29 PM)th...   Nov 23 2005, 10:25 PM
xix_inu_xix   QUOTE(naked_zombie @ Nov 23 2005, 10:25 PM)uh...   Nov 24 2005, 06:25 PM
dragncore   ...well this helped me get started with div overla...   Nov 21 2005, 04:39 AM
newfoundikaika   thanks for the tutorial.. i finally did my first o...   Dec 1 2005, 11:55 AM
Julie.   QUOTE(Phear @ Dec 7 2005, 2:55 PM)I was wonde...   Dec 19 2005, 07:56 AM
toyo loco   QUOTE(lilskylinechic @ Dec 19 2005, 6:53 PM)h...   Dec 19 2005, 11:19 PM
akele   will someone look at my profile and tell me how to...   Dec 22 2005, 10:17 AM
toyo loco   QUOTE(shannon!atthedisco @ Dec 23 2005, 9...   Dec 24 2005, 02:12 AM
lilskylinechic   hey i need help again....... i entered a text code...   Dec 29 2005, 01:14 AM
renier   whoa. extremely helpful!!! THANKS   Jan 2 2006, 04:05 PM
toyo loco   QUOTE(zoe_loves_you @ Jan 4 2006, 5:21 PM)ok....   Jan 4 2006, 08:21 PM
zoe_loves_you   ^thankyou! ok. so i tried it but the profile ...   Jan 4 2006, 09:00 PM
toyo loco   QUOTE(kahlk25 @ Jan 8 2006, 6:09 PM)okay, ive...   Jan 8 2006, 09:11 PM
tcunningham1589   ^^ no less than 800px in width, nor 600 px in heig...   Jan 17 2006, 04:36 PM
toyo loco   QUOTE(asian x h0ng @ Jan 21 2006, 11:31 AM)wh...   Jan 21 2006, 02:39 PM
missp0ptartx   blahh i've tried this code millions of times.....   Feb 6 2006, 02:09 PM
s0.inn0c3nt   ^^^ i kno wat u mean   Feb 6 2006, 02:26 PM
toyo loco   QUOTE(MikeTeh1337 @ Feb 8 2006, 6:20 PM)i hav...   Feb 8 2006, 09:25 PM
Julie.   Topic Pruned. I edited in the poster's questio...   Feb 13 2006, 04:21 PM
x_MiChElLe_xo   ok, i think i understand now. thanks!   Feb 18 2006, 11:54 PM
flipboa185   Yah, uhh that link to how to create a manual submi...   Feb 26 2006, 02:39 PM
toyo loco   QUOTE(flipboa185 @ Feb 26 2006, 11:39 AM)...   Feb 26 2006, 03:42 PM
flipboa185   Now then...I can't seem to make the second div...   Feb 26 2006, 09:23 PM
toyo loco   QUOTE(flipboa185 @ Feb 26 2006, 6:23 PM) ...   Feb 26 2006, 09:27 PM
flipboa185   I have to give you props for that really fast repl...   Feb 26 2006, 09:37 PM
toyo loco   QUOTE(flipboa185 @ Feb 26 2006, 6:37 PM) ...   Feb 26 2006, 10:02 PM
flipboa185   QUOTEso one fast question. if i use this div layou...   Feb 28 2006, 03:04 PM
insane panda   ok i've read through this a few times, and i d...   Mar 14 2006, 03:05 PM
smrkangl   I'm using the script provided for the image an...   Mar 14 2006, 10:06 PM
toyo loco   CODESome issues. I've got the code, and when ...   Mar 16 2006, 07:09 PM
leifiram   I still don't understand the entire process of...   Mar 17 2006, 06:15 PM
neko   didnt want to create a new topic, so i thought it ...   Mar 22 2006, 10:57 PM
Julie.   QUOTE(thestolenkiss @ Mar 26 2006, 6:33 A...   Mar 26 2006, 09:39 AM
x-vampire-heart-x   CODE <DIV class="Main"> <table...   Mar 28 2006, 12:45 PM
azn.peace.maker   QUOTE(meeangelzz @ Apr 1 2006, 9:54 PM) T...   Apr 1 2006, 11:57 PM
tcunningham1589   QUOTEi dont understand how to submit this layout t...   Apr 3 2006, 06:59 PM
supergirl8021   i would highly suggest that everyone make a manual...   Apr 4 2006, 12:19 PM
bByJ_x3   mmmmkayy.. thanks for the code...it helped..sortof...   Apr 13 2006, 01:08 PM
This Confession   QUOTEi'm new at p.s so could anyone give me so...   Apr 27 2006, 08:03 PM
I own yourr face.   QUOTEOkay. So I'm next to this DIV thing. I ju...   Apr 29 2006, 12:07 AM
toyo loco   QUOTE(YourPrettyFaceIsGoingToHELL @ Apr 28 20...   Apr 29 2006, 01:30 PM
StanleyThePanda   QUOTEI'm probably not paying attention....i ju...   May 4 2006, 10:16 PM
coldtrance   QUOTEi dont get it. this is how to make your OWN C...   Jun 9 2006, 06:08 PM
toyo loco   Ok, this topic has been cleaned up a bit. So when ...   Jun 17 2006, 08:25 PM
Drew is Deadly   Do image maps work with div's?   Jun 18 2006, 03:10 PM
toyo loco   QUOTE(Drew is Deadly @ Jun 18 2006, 1:10 ...   Jun 18 2006, 04:03 PM
Drew is Deadly   QUOTE(toyo loco @ Jun 18 2006, 4:03 PM) Y...   Jun 18 2006, 10:56 PM
defrag   What is the code suppose to look like? what needs ...   Jun 18 2006, 10:59 PM
rdubya   It doesn't have much on it yet but it's a ...   Jun 20 2006, 06:02 PM
TheFlaw   Hey all I was wondering if I could get some help. ...   Jun 22 2006, 11:56 AM
3 Pages V   1 2 3 >


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