Morgan Systems
Find 
  Development Notes and Bugfixes  
   

Select Article

We burn the midnight oil so you don't have to.
 
   
   
   
   
   
   
   
   
   
   




 

.Net Alignment

Alignment CSS Conflict

ASP.net GridView Item Alignment
Re: ASP.net GridView/TemplateField alignment
Resolution: Ensure no default text-align on td in CSS
12/14/2006

If you find youself wasting time (like I did) trying to figure out why .net refuses to honor your ItemStyle-HorizontalAlign parameter, then check your stylesheet and ensure you don't already have an align setting for "td".

Why? Because .net does put the align inside the td for the gridview, but the CSS seems to override it.

Comments

Add your comments

Name:
E-Mail:   We will not display your email address.
Comments: