imclintoncole
04-06-2009, 01:55 AM
<style>
body {
margin-top: 330px;
}
div.topbanner {
position: absolute;
top: 0%;
left: 24%;
width: 800px; <--- set your image width
margin-left: -400px; <---- make this HALF your image width.
height: 192px; set the height of the image. Should be less then the Margin height set in the body.
}
</style>
<div class="topbanner">
<img src="http://i43.tinypic.com/106y977.png" />
</div>
That's the code I use for the top banner on my myspace, it centers it on my computer but when i go on others it's not centered, what's the fix :[ anyone know please?
www.myspace.com/imclintoncole
also I want the background to start orange (the color of the lines on my myspace) and to fade into white && I Know how to do it if I were to just create a giant background but it never looks the same on other computers, someone help please :[
body {
margin-top: 330px;
}
div.topbanner {
position: absolute;
top: 0%;
left: 24%;
width: 800px; <--- set your image width
margin-left: -400px; <---- make this HALF your image width.
height: 192px; set the height of the image. Should be less then the Margin height set in the body.
}
</style>
<div class="topbanner">
<img src="http://i43.tinypic.com/106y977.png" />
</div>
That's the code I use for the top banner on my myspace, it centers it on my computer but when i go on others it's not centered, what's the fix :[ anyone know please?
www.myspace.com/imclintoncole
also I want the background to start orange (the color of the lines on my myspace) and to fade into white && I Know how to do it if I were to just create a giant background but it never looks the same on other computers, someone help please :[