The
display
property specifies the display behavior (the type of rendering box) of an element.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:Previous Section
5.2 PositioningNext Section
5.4 Text DecorationCopyright © 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.