--- title: Fullscreen tags: visual,advanced --- The `:fullscreen` CSS pseudo-element represents an element that's displayed when the browser is in fullscreen mode. - `:fullscreen` CSS pseudo-element selector is used to select and style an element that is being displayed in fullscreen mode. ```html

Click the button below to enter the element into fullscreen mode.

I change color in fullscreen mode!


``` ```css .container { margin: 40px auto; max-width: 700px; } .element { padding: 20px; height: 300px; width: 100%; background-color: skyblue; box-sizing: border-box; } .element p { text-align: center; color: white; font-size: 3em; } .element:-ms-fullscreen p { visibility: visible; } .element:fullscreen { background-color: #e4708a; width: 100vw; height: 100vh; } ```