3️⃣

5.3 Display

The display property specifies the display behavior (the type of rendering box) of an element.
notion image
Hiding an element can be done by setting the display property to none. The element will be hidden, and the page will be displayed as if the element is not there.
visibility:hidden; also hides an element. However, the element will still take up the same space as before. The element will be hidden, but still affect the layout:
notion image
⚖️
Copyright © 2021 Code 4 Tomorrow. All rights reserved. The code in this course is licensed under the MIT License. If you would like to use content from any of our courses, you must obtain our explicit written permission and provide credit. Please contact classes@code4tomorrow.org for inquiries.