Switch to full style
CSS code examples
Post a reply

How to make html element hidden using CSS

Mon Jan 07, 2013 7:12 pm

You can hide html element from CSS using the visibility or display property :
javascript code
div.class1
{
visibility:hidden;
}


to make it visiable:
javascript code
div.class1
{
visibility:visible;
}


Or
javascript code
div.class2
{
display:none;

}


to be visible and the default value of display property is :
javascript code
div.class2
{
display:inline;

}




Post a reply
  Related Posts  to : How to make html element hidden using CSS
 checking if a HTML element is visible or hidden under JQuery     -  
 Change and get html content of element     -  
 opacity of HTML element- transparent     -  
 Get the position of HTML element using JQuery     -  
 Get Width and Height -Inner and Outer for HTML element     -  
 Remove HTML element or Delete its content     -  
 removing focus border from a HTML element     -  
 Show hint when focus on html element using JQuery     -  
 Pop the element off the end of array     -  
 Usage of big element tag.     -  

Topic Tags

CSS Display