myspace div overlay

This tutorial is for people with a general knowledge of html and CSS. The example div overlay layout im using for this tutorial is located here and you have my permission to edit the coding on this layout to make your very own. I created this tutorial for people that would just like a simple explanation and the coding to use when creating a div overlay for their myspace.

return to menu

a clean canvas

This coding will get rid of everything on your myspace page and leave you with a blank canvas to work with!.

return to menu

stylizing

The CSS below will stylize and position your layout. This is the only CSS you will need for your overlay, its really quite simple when you don’t have to deal with all of the default CSS.

return to menu

keeping it centered

For this minimalistic overlay we are keeping the CSS very simple. Now if you want to change the width and height of your div overlay you will have to change the amount of pixels your div id is from all sides necessary to fit it into the desired position as seen in the last step with the "bg", "aboutme", and "sidebar" divs. The amount of pixels you need to use from the margin-left usually equals to half the width of the image you are trying to center. Left:50% helps center your div too so that is why it is included in the coding.

return to menu

browser compatability

To make your layout compatable in Firefox & IE you will more than likely have to set a certain position for firefox in which you would just use the normal margin-left: -230px;, and for “IE only” you would use the code _margin-left:-210px;. The only difference between the two is the underscore, in which you would use for IE because firefox will not pick the style up coded that way. You can use the underscore before any style and it will change the outcome of your layout in Internet Explorer only.

I always check how my layout looks in IE and FIrefox to make sure they are projecting my layout in a decent way, just by playing around with the pixels until its where I want it to be on each browser, since they are the two most used browsers for the internet.

return to menu

inserting div/bg

Insert your div overlay image in your “bg” div. Remember, if your image is a different size then the one we are using in this tutorial you will have to play around with the margin pixels to position it in the correct place (this goes for all of your divs).

return to menu

inserting div/nav

This is your navigation

return to menu

inserting div/about

This is where you write about yourself and whatnot This is the final part of your html. You can put pictures, marquees, and anything you want in this section. And of course all of this coding goes in your about me section. Its as simple as that, 4 divs and very short clean coding!

return to menu


luvh8 home

v1.0 - March 10, 2008