Login
Remember
Register
Ask a Question
What are the different ways to hide the element using CSS?
+1
vote
asked
Jul 7, 2021
in
CSS
by
rajeshsharma
What are the different ways to hide the element using CSS?
hide-elements
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jul 7, 2021
by
rajeshsharma
To Hide the elements using CSS we can use the below :
Using display property(display: none). It’s not available for screen readers. The element will not exist in the DOM if display: none is used.
Using visibility property(visibility: hidden), will take up the space of the element. It will be available to screen reader users. The element will actually be present in the DOM, but not shown on the screen.
Using position property (position: absolute). Make it available outside the screen.
...