View Single Post
  #1 (permalink)  
Old May 22nd, 2008, 02:59 PM
AspNetGuy AspNetGuy is offline
Authorized User
Join Date: Apr 2008
Location: , , .
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to AspNetGuy
Default Font size of Header Text in DetailsView Control

I am new to ASP.NET. I started with ASP.NET 3.5 and Imar's book.

I can not affect the DetailsView header text, though I have tried everything I can think of.

I have inserted a DetailsView control. I have set the HeaderText to "Add User". I have set the HeaderStyle:CssClass to AdminUserViewTableHeaderStyle. The style is coded as follows:

    background-color: #CC0000;
    padding: 5px;
    color: #FFF;
    font-size: 23px;
        height: 35px;
    border: 1px solid #009;

I have also changed the FontSize directly in the control.

All to noavail. The generated HTML is as follows:

<tr class="AdminUserViewTableHeaderStyle" style="font-size:16pt;">
            <td colspan="2">Add User</td>

As you can see the styling is for the <tr> not for the <td>.

Should the above styling affect the "Add User" text size or not?
If not is their a property in the DetailsView control that affects the TD in the header?

If not how to I change the fontsisze of the text in the header?

Thanks for any help you might provide.