| <!DOCTYPE html> |
| <html> |
| <!-- |
| | Demonstrate visibility hidden: |
| | The generated box is invisible (fully transparent, nothing is drawn), but |
| | still affects layout. |
| | https://www.w3.org/TR/CSS21/visufx.html#propdef-visibility |
| --> |
| <head> |
| <style> |
| body { |
| font-family: Roboto; |
| font-size: 20px; |
| margin: 0px; |
| } |
| |
| div { |
| display: inline-block; |
| } |
| |
| .large { |
| width: 100px; |
| height: 20px; |
| } |
| .small { |
| width: 20px; |
| height: 20px; |
| } |
| .red { |
| background-color: #F00; |
| } |
| .green { |
| background-color: #0F0; |
| } |
| .blue { |
| color: #FFF; |
| background-color: #00F; |
| } |
| .yellow { |
| background-color: #FF0; |
| } |
| .hidden { |
| visibility: hidden; |
| } |
| .visible { |
| visibility: visible; |
| } |
| </style> |
| </head> |
| <body> |
| <div class='large green'> |
| <div class='small red hidden'></div><div class='small yellow'></div> |
| <video class='small blue hidden'></video><div class='small yellow'></div> |
| </div> |
| </body> |
| </html> |