+1 vote
in CSS by
What are the different ways to hide the element using CSS?

1 Answer

0 votes
by

To Hide the elements using CSS we can use the below :

  1. 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.
  2. 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.
  3. Using position property (position: absolute). Make it available outside the screen.

Related questions

+1 vote
asked Jul 6, 2021 in CSS by rajeshsharma
0 votes
asked Feb 10 in CSS by DavidAnderson
...