hups Posted May 9, 2011 Share Posted May 9, 2011 Hello allCan someone please explain how and what code to use to insert a floating image to my website? I want the image to be displaye dteh bottom right of the site and to be visible at all times on all pages so I guess it is a floating image.Also what template file to use please.Thanks in advance Link to comment Share on other sites More sharing options...
NeilD Posted May 9, 2011 Share Posted May 9, 2011 Try adding this to the CSS of the div tag the image is in. #yourdiv { bottom: 0; height: 50px; position: fixed; right: 0; width: 50px; z-index: 1000;} Link to comment Share on other sites More sharing options...
hups Posted May 10, 2011 Author Share Posted May 10, 2011 HelloThanks for your email.That did not work fo rme. Could not even get the image to display anywhere so not sure what I'm doing wrong.This is the css i used #floatimg { float: right; bottom: 0; height: 85px; position: fixed; right: 0; width: 100px; z-index: 1000 } and here is the div tag i created But could not even getthe image to display. Where in header.tpl, footer.tpl etc should i insert this code?Thanks Link to comment Share on other sites More sharing options...
NeilD Posted May 10, 2011 Share Posted May 10, 2011 your CSS and HTML tags arn't quite right. If you use the #floating tag in the CSS then you must use id="floating" in the HTML part instead of class="floating"I just looked at your site, you have the image in the right place sort of but you havent put it into a DIV tag replace with and it should work Link to comment Share on other sites More sharing options...
sickshot Posted May 30, 2011 Share Posted May 30, 2011 great job NeilD worked just fine for me...ve'been lookin this kind of code for a long time...thank U Link to comment Share on other sites More sharing options...
NeilD Posted June 25, 2011 Share Posted June 25, 2011 No problem mate Link to comment Share on other sites More sharing options...
bromesi86 Posted June 25, 2011 Share Posted June 25, 2011 this is a good idea. I thought of trying this out myself. Thanks to this forum, it gives out some helpful tips and ideas._______ Link to comment Share on other sites More sharing options...
Recommended Posts