CSS :fullscreen Pseudo-class
Example
Set the background color to yellow when the page is in full-screen mode:
:fullscreen {
background-color: yellow;
}
Try it Yourself »
Definition and Usage
The CSS :fullscreen pseudo-class
is used to select
and style any element that is currently in full-screen mode.
| Version: | Fullscreen API |
|---|
Browser Support
The numbers in the table specifies the first browser version that fully supports the pseudo-class.
| Pseudo-class | |||||
|---|---|---|---|---|---|
| :fullscreen | 71 | 12 | 64 | 16.4 | 58 |
CSS Syntax
:fullscreen {
css declarations;
}
Related Pages
CSS tutorial: CSS Pseudo classes