RE: Can you give an example of an @media property other than screen?

Can you give an example of an @media property other than screen?

Ahana Roy Senior Developer Asked on June 5, 2018 in CSS.
Add Comment
1 Answers

There are four types of @media properties.

all – for all media type devices
print – for printers
speech – for screenreaders that “reads” the page out loud
screen – for computer screens, tablets, smart-phones etc.

Here is an example of @media property other than screen:


@media print {

body {

color: red;

}

}

Default Answered on November 26, 2018.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.