Log In · Register

 
 
Closed TopicStart new topic
How can I do this ?
Yuniechan
post Jan 9 2008, 04:46 PM
Post #1


Senior Member
***

Group: Member
Posts: 84
Joined: Mar 2007
Member No: 511,742



Anyone know the code to put an image above the add so that it stays in place even when the page is resized? People have told me its not possible but what i mean is like in this profile


http://profile.myspace.com/index.cfm?fusea...endID=305752863
 
S-Majere
post Jan 9 2008, 04:51 PM
Post #2


Addict
*******

Group: Staff Alumni
Posts: 3,918
Joined: Jun 2007
Member No: 538,522



Yep, you'll need to host your image and play around with the dimentions and pixel specs.

CODE
<style><span class="off"></span><span class="off"></span><div class="image">

<img src="IMAGE URL HERE"></div><style>

body {margin-top:380px}
div.image {
position:absolute;
top:0px;
left:50%;
margin-left:-390px;
width:675px;
height:400px;
}
</style><span class="off">
</span></style>


If that confuses you, link me to your image and I'll code it for you.
 
Yuniechan
post Jan 9 2008, 06:23 PM
Post #3


Senior Member
***

Group: Member
Posts: 84
Joined: Mar 2007
Member No: 511,742



doesnt work nothing shows up
 
S-Majere
post Jan 9 2008, 06:24 PM
Post #4


Addict
*******

Group: Staff Alumni
Posts: 3,918
Joined: Jun 2007
Member No: 538,522



There is nothing wrong with the code. Remember to wrap it in style tags.

Your next option is to post your image link here and I'll code it for you.
 
Yuniechan
post Jan 9 2008, 06:38 PM
Post #5


Senior Member
***

Group: Member
Posts: 84
Joined: Mar 2007
Member No: 511,742



oh sorry nevermind. I just added a part of that code to my previous background code and i think it worked fine
 
S-Majere
post Jan 9 2008, 06:42 PM
Post #6


Addict
*******

Group: Staff Alumni
Posts: 3,918
Joined: Jun 2007
Member No: 538,522



Great stuff, I'll keep this topic open for 24 hours and then I'll close it if you have no further problems.
 

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: