During the testing phase, a team discovers that their website's layout breaks in Internet Explorer but works fine in other modern browsers. What approach should they take to resolve this without impacting the layout in modern browsers?
- Adjust the layout using a separate stylesheet
- Apply a specific CSS hack for Internet Explorer
- Rewrite the entire layout for Internet Explorer
- Use conditional comments to target only IE
Using conditional comments to target only Internet Explorer allows the team to apply specific fixes without affecting the layout in other modern browsers. This approach enables a targeted solution to address the compatibility issues specific to Internet Explorer, ensuring a consistent and functional layout across different browsers.
Loading...
Related Quiz
- What is the default value of the box-sizing property in CSS?
- When designing a responsive web page, a developer notices that certain styles are not applied on smaller screens as intended. Which aspect of media queries should they inspect first?
- Responsive typography can be achieved by using viewport units for font sizes, such as ________.
- The CSS property text-transform can be used to change the text to ________.
- The ________ filter in CSS is used to adjust the brightness of an element.