Website Tutorials
Recipes
Entertainment Reviews
Home Remedies
Game Codes and Cheats
MySpace Website Tutorials | Submited Jan 5, 2008
Notes
Recent Blog entry
<div class="blogText">
<span class="btext">nU-blogs</span>
</div>
.37182{move the new text up}
.blogText{position:relative; top:-252px; left:-252px; float:right;}
.37182{hide the old text}
.latestBlogEntry .btext{visibility:hidden}
XXX's Blurbs
<div class="blurbText">
<span class="orangetext15">My Blurbs, yo</span>
</div>
.37182{position the new text}
.blurbText{position:relative; top:-36px; left:4px;}
.37182{hide the original text}
.blurbs td.text .orangetext15{visibility:hidden;}
About Me:
<div class="aboutText">
<span class="orangetext15">I am spartacus</span>
</div>
.37182{move the new text up}
.aboutText{position:relative; top:-13px;}
.37182{I have to this because Ive yet to find a better way.}
.aboutText .orangetext15{background-color:fff;}
Who I'd like to meet
<div class="meetText">
<span class="orangetext15">I don't want to meet</span>
</div>
.37182{move the new text up}
.meetText{position:relative; top:-13px;}
.37182{I have to this because Ive yet to find a better way.}
.meetText .orangetext15{background-color:fff;}
XXX's friend space
<div class="friendText2">
<span class="orangetext15">Friends:</span>
</div>
.37182{move the new text down}
.friendText2{position:relative; top:37px; left:1px;}
.37182{hide the old text}
.friendSpace .orangetext15{visibility:hidden}
Number of friends
<div class="countText">
<span class="btext">I have
<span class="redbtext">37182</span>
friends
</span>
</div>
.37182{move the new text down}
.countText{position:relative; top:62px; left:-7px;}
.37182{hide the old text}
.friendSpace .btext{visibility:hidden}
XXX's Friends Comments
<div class="commentText">
<span class="orangetext15">Comments:</span>
</div>
.37182{move the new text down}
.commentText{position:relative; top:289px; left:-7px;}
.37182{hide the old text}
.friendsComments .orangetext15{visibility:hidden}
Displaying 50 of 43 comments
<div class="commentCountText">
<b>Displaying
<span class="redtext"> 2 </span>of
<span class="redtext"> 2 </span>
comments
</div>
.37182{move the new text down}
.commentCountText{position:relative; top:311px; left:-3.5px; background-color:fff; width:190px;}
1
With position:relative; the DIV positions itself accordingly to the rest of the page.
For example:
<div class="divA">This one uses position:relative;, and the top number is set at 0</div>
<div class="divB">This one also uses position:relative; and the top number is set to 30px.</div>
<style>
.divA{position:relative; top:0;}
.divB{position:relative; top:30px;}
</style>
.divB will be 30 pixels below .divA
NOTE: if you use position:relative;, left:50%; isn't required.