Note that there are some explanatory texts on larger screens.

plurals
  1. PORemoving CSS Margin on iPad / iPhone
    primarykey
    data
    text
    <p>On an e-commerce website that I set-up Link on a page that has 4 alternative product views (they are the 4 small images underneath the add to basket) On an iPhone or iPad the 4th image isn't having its right margin removed so it goes onto the next line.</p> <p>Basically each images has a 10px right margin, and then the last image that has a class of 'end' has a right margin of '0px !important'.</p> <p>This works fine in web browsers but on the iPad / iPhone the 0px right margin is not being applied.</p> <p>I have a feeling this is going to be an easy one but I just can't see it, thanks in advance for any help.</p> <p><strong>EDIT</strong> I have added the code below and have also set-up a stripped down version of the page I am having the problems on: <a href="http://emmashome.co.uk/small/" rel="nofollow">link</a>, it is the 4 small images at the bottom of the right hand side.</p> <p>Below is the HTML for the images:</p> <pre><code>&lt;div class="image-additional"&gt; &lt;img alt="" title="" src="larchblue-cr-55x55.jpg" class="thumb "&gt; &lt;img alt="" title="" src="larchgreen-cr-55x55.jpg" class="thumb "&gt; &lt;img alt="" title="" src="larchpink-cr-55x55.jpg" class="thumb "&gt; &lt;img alt="" title="" src="larchyellow-cr-55x55.jpg" class="thumb end"&gt; &lt;/div&gt; </code></pre> <p>And here is the CSS:</p> <pre><code>.image-additional { width: 268px; margin-top: 13px; clear: both; position: absolute; bottom: 0; overflow: hidden; } .image-additional img { border: 1px solid #E7E7E7; margin-right: 10px; } .image-additional img.end, .image-additional img:last-child { margin-right: 0px !important; } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload