I can't see the 1 pixel protrusion in ur gallery right now. did u already solve it. If yes, i am interested to know how... can u please explain.
BTW, your gallery and the gallery design in wonderful... -GTG On 8/24/07, b0bd0gz <[EMAIL PROTECTED]> wrote: > > > > Hi, > > I have a gallery of images and when one is loaded it gets the width of the > image and then sets the p tag underneath the image to the same width, the > problem is in firefox, on SOME of the images, the width of the p tag is a > pixel out, but in IE7 it displays everything correctly. > > here is a link to the gallery itself > http://b0bd0gz.adsl24.co.uk/gallery2/ > > and here is a link to a screenshot of the problem > http://img44.imagevenue.com/img.php?image=75951_wrong_width_122_861lo.JPG > > heres the code that gets and then sets the width > > var imgload = img = $('img.full_img')[0]; > imgload.onload = function() { > var description = $('a.selected img').attr("alt"); > var width = $('.full_img').width(); > $('p.hidden').css('width', width + 16); // The + 16 is added because > the > image has a border > $('p.hidden').html(description); > $('p.hidden').fadeIn("slow"); > }; > > I have no idea what's causing this so any ideas would be greatly welcomed. > If you need anymore info let me know. Thanks in advance. > b0bd0gz > -- > View this message in context: > http://www.nabble.com/Wrong-Width-in-Firefox-tf4324806s15494.html#a12316725 > Sent from the JQuery mailing list archive at Nabble.com. > >