What is the use of display:block CSS property?

 Posted by vishalneeraj-24503 on 3/12/2014 | Category: ASP.NET Interview questions | Views: 1214 | Points: 40

display:block CSS property is used for showing any HIDDEN controls or elements on the page.

document.getElementById('div_employee_grid').style.display = 'block';
Here is my Div control-
<div id="div_employee_grid">Hello</div>

Now div_employee_grid will be again shown on page.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response