To make an image responsive, which CSS property is essential?
- Both B and C
- height: auto;
- max-width: 100%;
- width: 100%;
Setting 'max-width: 100%;' ensures that the image won't exceed its original size, and 'height: auto;' maintains its aspect ratio, making it responsive.
Loading...
Related Quiz
- How would you blend two overlapping elements using the mix-blend-mode property?
- What is the correct syntax to use a custom property in your CSS?
- Bootstrap incorporates a ________ system for quickly developing responsive layouts.
- How does the use of CSS media queries enhance accessibility for users with specific needs, such as those requiring high contrast or large text?
- PostCSS allows developers to use tomorrow's CSS syntax by transforming it into ________.