View Full Version : position an image


kaysee
02-13-2003, 02:01 AM
I am using PHP and CSS to skin my site. One thing that I need to know how to do is position an image using just the CSS file.
This is the code I currently use
IMG SRC="http://www.beautiful-friend.net/strawberryshortcake.jpg" alt="strawberry shortcake" style="position:absolute; top:10px; left:594px; width:325px; height:406px"
Thanks for your help in advance
Ruthie

Alcy
02-13-2003, 02:14 AM
Is this it?

<style type="text/css">

img.NAME
{
position:absolute;
top:10px;
left:594px;
}

</style>

<img src="http://www.beautiful-friend.net/strawberryshortcake.jpg" alt="strawberry shortcake" class="NAME">

kaysee
02-13-2003, 02:19 AM
I want to be able to change the image on each skin. Currently on my default skin there is an image of Strawberry Shortcake see the site here (http://www.beautiful-friend.net/) What I want to be able to do it have the image information in the CSS so that I can be different on each skin. Currently the image information is hard coded in the html and won't change from skin to skin.
thanks
Ruthie

kaysee
02-14-2003, 12:48 AM
I have found what I needed.
No need to reply to this post.
Thank you
Ruth