150k views
2 votes
Provide a style rule to display all inline images as blocks.

1 Answer

3 votes

Final answer:

To display all inline images as blocks, you can use the CSS style rule display: block;

Step-by-step explanation:

To display all inline images as blocks, you can use the CSS style rule display: block;. This will change the default behavior of inline images, making them appear as blocks. Here's an example:

img {
display: block;
}

This CSS rule targets all <img> elements and sets their display property to block. As a result, each image will be displayed on its own line.

User Elliott
by
7.6k points