You are here: Reference > CSS > properties > browser specific extensions > -moz-force-broken-image-icon

-moz-force-broken-image-icon property

Browser support:
Specifies whether the browser should display the "image failed to load" image instead of a real height.
You can use it in the userChrome.css file too.
JavaScript page for this property: MozForceBrokenImageIcon. You can find other example(s) there.

Possible values:

 One of the following values: 
"image failed to load" image is not shown.
"image failed to load" image is shown.
Default: 1.

Example HTML code 1:

This example illustrates the use of the -moz-force-broken-image-icon property:
        <td>-moz-force-broken-image-icon : 0</td>
        <td>-moz-force-broken-image-icon : 1</td>
            <img src="anInvalid.png" style="width:200px; height:200px; -moz-force-broken-image-icon:0;">
            <img src="anInvalid.png" style="width:200px; height:200px; -moz-force-broken-image-icon:1;">
Did you find this example helpful? yes no

Supported by tags:

External links:

User Contributed Comments

Post Content

Post Content