-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
  • 827
  • 9
  • 21

4 Answers4

2

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

Yudiz Solutions
  • 4,216
  • 2
  • 7
  • 21
1

display: none;

  • use this css property for the div or span element.
Piyumi
  • 76
  • 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
  • 635
  • 7
  • 14