Help - Search - Members - Calendar
Full Version: Band Myspace Help
Forums > Resource Center > Support Center > MySpace Support
Calebdvdsn
Ok, so on this myspace i'm working on for a buddy of mine, whenever i post a show it moves the header down for some reason, is there a way to lock the header?

CODE
<style>body table { margin-top: 260px;_margin-top: 258px; color: 000000; }
body td table, body div table { margin-top: 0;  _margin-top:0; color: 000000; z-index:9;}</style>

<style>
.masthead {position:absolute; margin-top:-1820px; margin-left:-413px; left:50%; width:XXXpx; height:XXXpx; z-index:2;}
</style>

<div class="masthead">
<img src="http://i36.tinypic.com/2hxapv8.jpg" />
</div>
<style>


Thats the code for the header.
ZeT0
If the master head is at the top shouldn't the margin-top: be 0px?
Also, set the width and height. ( width:XXXpx; height:XXXpx; )
And unless you have rollovers, best to set it on z-index:1;
I could be wrong though. ;)
Calebdvdsn
it didnt do anything other than it moved it down alot...
deadmellotron
Replace your codes with this:

CODE
<style>
.profileWidth table { margin-bottom:1150px; width:800px; }
.rail { display:none; }
.gap {
  background:url() top left no-repeat;
  width:900px; height:1150px;
  position:absolute; top:0; left:50%;
  margin:0px 0 -400px -1150px;
</style>

<div class="gap"></div>

<style>
.top {position:absolute; top:120px; left:50%; margin-left:-414px; _margin-left:-414px; width:828px; height:828px; z-index:2;}
</style>

<div class="top">
<img src="http://i36.tinypic.com/2hxapv8.jpg" />
</div>


If that creates too big of a gap, refer to this tutorial to adjust it.
Mike
It's most likely this bit that's creating issues:

CODE
<style>body table { margin-top: 260px;_margin-top: 258px; color: 000000; }
body td table, body div table { margin-top: 0;  _margin-top:0; color: 000000; z-index:9;}</style>

I'm guessing you're using a table to put up the header, and it's probably being pushed down everytime you post a new show because of the first line. Anyway, TJ's code should help. Just remember to edit it according to your header.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.