Friday, December 25, 2009

Myspace, CSS, Position: FIXED?

I've used this CSS Style on my computer and that's working. This fixes an image.



%26lt;STYLE type=text/css%26gt;



BODY {



BORDER-TOP-WIDTH: 0px; PADDING-RIGHT: 10px; OVERFLOW-Y: auto; PADDING-LEFT: 10px; BORDER-LEFT-WIDTH: 0px; BACKGROUND: rgb(123,187,221); BORDER-BOTTOM-WIDTH: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; HEIGHT: 100%; BORDER-RIGHT-WIDTH: 0px



}



BODY {



FONT-SIZE: 16px; FONT-FAMILY: georgia, serif



}



.clear {



CLEAR: both



}



.fixpic {



DISPLAY: block; LEFT: 0px; BOTTOM: 0px; POSITION: fixed



}



* HTML .fixpic {



POSITION: absolute



}



%26lt;/STYLE%26gt;



But I tried this on Myspace (and Geocities) and is NOT working. Any one knows Why?



Thanks and Merry Christmas



Myspace, CSS, Position: FIXED?

I know why, and I can answer with one simple statement: MySpace sucks, and puts us techs to shame.



It's simple, really. You just have to classify your images as the corresponding classes.



For example: %26lt;img src="foobar.png" class="fixpic" /%26gt;

No comments:

Post a Comment

 
web development