Unexpected bottom border with images in Opera 7 -
11-19-2003
, 09:24 PM
I have the familiar 'thumbnail' scenario. I want to place a small
border around the image when the cursor hovers above it. I use a 1
pixel, solid border around the image that changes between normal and
hover.
This works fine in Internet Explorer, but in Opera 7.22, the bottom
border is 3 pixels thick. If I expand all borders to 3 pixels, this
bottom border is still 2 pixels thicker than the others, which
suggests that padding or a margin exists on the bottom (text links
use the same background colour as the border). However, during
previous attempts to correct this, I explicitly removed all margins
and padding from any related element that didn't need it. To add even
more confusion, at one point, the first image had uniform borders,
but all the others displayed the usual results. Unfortunately, I
can't seem to repeat this.
Can anyone explain this, or is it a browser bug? I am certain that no
other style sheets are affecting this page.
It did: a vertical alignment of either 'text-bottom' or 'middle' does
the trick. I'm glad that the difference was due to the non-conforming
nature of Internet Explorer*. That's much more comforting than a
"buggy" Opera.
Thank you,
Mike
* Does Microsoft ever intend to honour any standards that are not
their own?
--
Michael Winter
M.Winter (AT) blueyonder (DOT) co.uk.invalid (remove ".invalid" to reply)