Within a formwview 2010 control, I have an html table where I want to format the header row. I would like to use CSS to format the header row. The CSS formatting is not picked up. Thus can you tell me what I need to do to the code below so that the CSS formatting works for the code below?
The following is the code:
The following is from the CSS code:
FormviewheaderStyle
{
border-style: Solid; border-collapse: collapse; vertical-align: top; text-align: center;background-color: #5F809F;
border-width: 1px 1px 1px 1px;color:White; font-family:Calibri; font-size:16; font-weight:bold;
}
The following is from the .aspx code:
HorizontalAlign="Center" DefaultMode="Edit" DataKeyNames="Attestation_id" BorderStyle="None"
EnableModelValidation="True">
Satyapriya NayakPosted Dec 8, 2011, 7:22 AM
Try this...
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>
Thanks
Sie StePosted Dec 10, 2011, 3:48 PM
I tried what you suggested, however that did not work. What else do you think I can look at? Should I declare the formview style as a ''th since it is a header or a 'td' since is in a cell in a row fo a table.
I am guessing that 5 CSS systle sheets that website uses are all wired together correctly since intellisense can find this style. If there some way I can look to see how all the style sheets are 'wired together'. This web page also uses master pages.