Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ General Web Design _ ALT text rendering in Opera

Posted by: Christian J Apr 10 2007, 05:53 PM

CODE
p {
width: 100px;
border: solid;
}

<p>
<img src="dog.jpg" width="100" alt="Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.">
</p>


When image viewing is disabled in Opera 9, the ALT text is rendered as a non-breaking line of text. If the image's container is too narrow, the ALT text spills out of it and may cover other content. Even worse, if image viewing is enabled but the image is broken, any ALT text exceeding the image width is cropped.

Is ALT text rendering specified by W3C somewhere? Can Opera's behavior be avoided?

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)