Posts Tagged html div tag
Hide empty DIV tags in HTML / ASP .Net using CSS
Empty div tags can create a horizontal gap on html or aspx pages. display:block is the common attribute used in CSS to hide the empty div tag. But unfortunately it does not work on all browsers. Even different versions of same browser interprets this attribute in different ways.
We can use combination of different attributes to make it work. e.g.
.cssClassName
{
display:block;
clear:both;
visibility:hidden;
line-height:0;
font-size:0;
}
Recent Posts
- Powershell error converting text file to csv: the value of argument “name” is invalid
- Run Powershell ISE with different user credentials
- SPD 2010 Workflow – provided location does not correspond to a form template that can be browser enabled
- SharePoint 2010 feature error The resource object with key was not found
- How to upload Excel (XLSX or XLS), CSV, Tab Delimited Text files to SQL Server
Recent Comments