Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Answer to @media types' question with example #27

Merged
merged 2 commits into from Feb 24, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion questions/css-questions.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,24 @@ No... Sadly.

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

TODO
Yes, there are four types of @media properties (including _screen_):
* `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 `print` media type's usage:
```css
@media print {
body {
color: black;
}
}
```

###### References

* https://developer.mozilla.org/en-US/docs/Web/CSS/@media#Syntax

[[] Back to top](#css-questions)

Expand Down