BM136
12-10-2009, 03:48 AM
Hi all,
I would like to add a fixed image in a web page, I was able to add a fixed background image, but I don't want it to be a background, I need it as an img tag, because of two reasons:
1. I want add a link to that image
2. I want to display it over other element when the scroll move, not behind them.
any ideas using CSS, HTML or Javascript??
**to add a fixed background, use the following code:
.fixed_bg
{
background-attachment: fixed;
background-image: url(image.gif);
background-repeat: no-repeat;
background-position: bottom right;
}
I would like to add a fixed image in a web page, I was able to add a fixed background image, but I don't want it to be a background, I need it as an img tag, because of two reasons:
1. I want add a link to that image
2. I want to display it over other element when the scroll move, not behind them.
any ideas using CSS, HTML or Javascript??
**to add a fixed background, use the following code:
.fixed_bg
{
background-attachment: fixed;
background-image: url(image.gif);
background-repeat: no-repeat;
background-position: bottom right;
}
