mbp Posted November 8, 2013 Share Posted November 8, 2013 What is the easiest way to insert an image as displayed on my picture? Have tried adding an div in layout.tpl but the place of the picture moves and lies over the header if i preview the page from low resolution browser. Link to comment Share on other sites More sharing options...
vekia Posted November 8, 2013 Share Posted November 8, 2013 the easiest way: html box free + code like: <div style="width:30px; height:100px; display:block; position:fixed; right:0px; top:100px; background:none;"> <a href="http://www.facebook.com/MyPresta" style="background:none;" target="_blank"> <img src="http://mypresta.eu/content/uploads/2013/03/howtofacebookbutton.png" style="background:none;"> </a> </div> take a look here: floating advertise image you can of course change position of the floating image with css styles, just manipulate values in params: right:0px; / top:100px; Link to comment Share on other sites More sharing options...
mbp Posted November 9, 2013 Author Share Posted November 9, 2013 Thx, that actually helped me a lot! But i got one more question i can't figure out: Can i make the image disappear behind the white instead if floating in to main page? Link to comment Share on other sites More sharing options...
vekia Posted November 9, 2013 Share Posted November 9, 2013 you have to define z-index params for white container and also for your image. can you share url to your website? i will inspect it Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now