CMattAyers
05-31-2010, 03:52 PM
Hi, I have a question about an issue I'm having with a Myspace site. I know Myspace is probably frowned upon, but I'm just trying to do something simple with this page.
Here's the site: www.myspace.com/safeandsound61
I'm having two issues - In all web browsers I've checked it in, there is a large gap at the top of the body text on the right. I know that the margin code is affecting this, but if I remove it, it also will remove the margin I need widened at the top of the page for the banner.
The other issue is that the image at the top of the page is centered now in IE, but it is slightly shifted to the right in Firefox and Safari.
Here is my code:
<style>
body {
margin-top: 325px;
padding:0px;
}
</style>
<style>
.topbanner{
position: relative;
top: -1055px;
left: 120px;
width: 746px;
height: 263px;
margin-left: -450px;
padding:0px;
}
</style>
<div class="topbanner">
<img src="http://cmattayers.com/images/safety.png" />
</div>
Here's the site: www.myspace.com/safeandsound61
I'm having two issues - In all web browsers I've checked it in, there is a large gap at the top of the body text on the right. I know that the margin code is affecting this, but if I remove it, it also will remove the margin I need widened at the top of the page for the banner.
The other issue is that the image at the top of the page is centered now in IE, but it is slightly shifted to the right in Firefox and Safari.
Here is my code:
<style>
body {
margin-top: 325px;
padding:0px;
}
</style>
<style>
.topbanner{
position: relative;
top: -1055px;
left: 120px;
width: 746px;
height: 263px;
margin-left: -450px;
padding:0px;
}
</style>
<div class="topbanner">
<img src="http://cmattayers.com/images/safety.png" />
</div>