html - Firefox adds extra space after image in div (or makes divs bigger) -


he everyone,

i have problem firefox on website i'm working on:

link

i've built horizontal slider, works great on browsers, except firefox (both osx windows). problem firefox shows more margin/padding/space after images in slider 5px left , right margin it's supposed have. weird thing first image has less spacing rest of images.

i have tried include .js workaround this:

function onpageload(){     // firefox rare spacing fix //     settimeout(function() {         jquery('.horizitem').each(function() {             var outerwidth = jquery(this).find('img').outerwidth();             jquery(this).width(outerwidth);         });     }, 300); } onpageload(); 

this works of time, makes divs containing images 10 or 20px wide. messes slider.

is there simple css fix can apply remove these weird spacings?

i can't seem find source of spacing in element inspector... when compare width of div width of image, difference (minus intended 10px margin) 15.883px, weird number well.

can me? feel it's real simple mistake i'm making somewhere.

thanks bunch.

i've had similair problem when making tumblr themes; images , tumblr photosets (photos displayed in iframe) show little "padding" beneath them, despite padding being 0 in css. solution make them blocks;

img, iframe {     display: block; } 

maybe try display images inline-block, since side side?


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -