-2

Hello guys I want to hide some content using CSS code. Can you guys tell me how to hide any div tag or span tag using CSS stylesheet?

DHerls
  • 747
  • 8
  • 20

4 Answers4

2

Simply by using display: none; property. example
#selector { display: none;} or .selector { display: none;}

Yudiz Solutions
  • 3,473
  • 1
  • 5
  • 20
1

display: none;

  • use this css property for the div or span element.
Piyumi
  • 41
  • 6
0

Hide any content using Css display:none property

#hide{
    display:none;
}

You also can Hide any property using JavaScript:

document.getElementById("hide").style.display = "none";
0

There are two ways to hide content using CSS display:none and visibility:hidden the difference among two can be found here

Utkarsh
  • 535
  • 5
  • 10