MCQs > IT & Programming > CSS 3 > What is the problem in the following style sheet? @import 'style.css'; @media print { @import 'print-main.css'; BODY { font-size: 10pt } } h1 {color: red }

CSS 3 MCQs

What is the problem in the following style sheet?

@import "style.css";
@media print
{
  @import "print-main.css";
  BODY { font-size: 10pt }
}
h1 {color: red }


Answer

Correct Answer: @import rule is invalid since it occurs inside a @media block.

Explanation:

Note: This Question is unanswered, help us to find answer for this one

CSS 3 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

CSS 3 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it