Languages
[Edit]
EN

CSS - hide element

0 points
Created by:
sienko
743

In this article, we would like to show you how to hide element using CSS.

Quick solution:

or:

Note:

Analyze the below examples to see the difference between the two solutions.

 

 

1. Practical example using display: none

Edit

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.

 

2. Practical example using visibility: hidden

Edit

By setting the visibility property to hidden the element will be hidden, but it will still affect the layout by taking up the same space as before.

1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join