Join Bytes! wrote:
Quote:
I am trying to insert a background image into URLs that link to pages
outside our intranet and thus when clicked open a new window.
|
Quote:
a.newWindow {
padding-right: 14px;
background: url(/bcasinfo/images/productionFiles/icons/newWindow.gif)
no-repeat right center;
}
>
works fine in FF-whatever regardless, and, most of the time in IE6.
However it does not work in IE6 when the sentence text that comprises
anchor wraps to a new line.
|
When divided over two lines, IE takes the top and right borders of the
first half, and the left and bottom borders of the second half, to
calculate the position of the background image. So, 'right center',
will position the background-image utter right of the paragraph (even
if the end of the second half of the link is mid sentence), and
vertically centered between the two lines.
To avoid this, you could either make sure a link is never wrapping to
a different line (by making them shorter and replacing spaces in the
link text with ), or by adding an empty span or transparent
image to the end of the link, which you can then give the background
styles.
--
Els
http://locusmeus.com/
accessible web design:
http://locusoptimus.com/