leetvape Posted November 24, 2011 Share Posted November 24, 2011 So, I changed the image in my 'blockpaymentlogo' block and now, even after editing the .tpl/.php/.css files associated with it, it still overlaps my payment block. Any ideas? Here are some applicable files: Screenshot: http://imageshack.us/photo/my-images/854/screenshot20111123at759.png/ Here's the code from the module css: /* Block logo payment */ .paiement_logo_block { width: 170px; height: 108px; text-align: center; margin-bottom: 1.5em } .paiement_logo_block a { text-decoration: none } .paiement_logo_block img { margin: 0 0.5em; float:left; } Here's the .tpl: <!-- Block payment logo module --><div id="paiement_logo_block_left" class="paiement_logo_block"><a href="{$link->getCMSLink($cms_payement_logo)}"><img src="{$img_dir}logo.gif" alt="secure" width="162" height="104" /></a></div><!-- /Block payment logo module --> Any ideas? As always, any help is much appreciated! Link to comment Share on other sites More sharing options...
justinl Posted November 24, 2011 Share Posted November 24, 2011 I believe it's because you are floating the payment image to the left. try add this CSS attribute to your paiement_logo_block css: overflow: hidden. OR outside of the paiement_logo_block_left div try adding in a <div class="clearfix"></div> Hope that helps. Here is a great resource for help with floats: http://coding.smashingmagazine.com/2009/10/19/the-mystery-of-css-float-property/ Link to comment Share on other sites More sharing options...
leetvape Posted November 24, 2011 Author Share Posted November 24, 2011 Wow, helped a lot! Thanks justin! Link to comment Share on other sites More sharing options...
justinl Posted November 25, 2011 Share Posted November 25, 2011 Glad to help Link to comment Share on other sites More sharing options...
coverman Posted May 14, 2012 Share Posted May 14, 2012 Hi. I need some help. Text over images: http://covermania.pt/product.php?id_product=39 Thanks 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