Quantcast
Channel: Topliners: Message List
Viewing all articles
Browse latest Browse all 3481

Re: How do you make the background image on a landing page 'absolute'?

$
0
0

Hey Ashley,

 

If I understand your question correctly, you are trying to absolutely position an image on your landing page. You would want to put the position and its coordinates within your CSS, and then whatever you are absolutely positioning to, be sure to put your "relative" attribute on. Kind of hard to script without knowing exactly what you are trying to do, but here is the gist.


- in your CSS:

#containingDIV {

     postion: relative;

}

#image {

     position: absolute;

     top: ##px; (or em, %, mm...etc)

     left: ##px; (or em, %, mm...etc)

}

 

-in your code:

<div id="containingDIV">

     <img id="image" src="XXXXX.jpg" width="#" height="#">

</div>


Viewing all articles
Browse latest Browse all 3481

Trending Articles