CSS :fullscreen Selector
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 :fullscreen
selector is used to select
the element(s) that is in full-screen mode.
Browser Support
The numbers in the table specifies the first browser version that fully supports the selector.
Selector | |||||
---|---|---|---|---|---|
:fullscreen | 71.0 15.0 -webkit- |
12.0 11.0 -ms- |
64.0 9.0 -moz- |
3.1 -webkit- | 58.0 15.0 -webkit- |
CSS Syntax
:fullscreen {
css declarations;
}
Related Pages
CSS tutorial: CSS Pseudo classes
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.