ASP + CSS + Me = Headache

Associate
Joined
29 Dec 2004
Posts
159
I am trying to apply css formatting to a gridview.

I have assigned the Gridview a cssclass using:

CssClass="Gridview1"

and then in the external style sheet i have:

Gridview1

{

border 1px solid blue

}

Also the asp page has the tag

<link href="StyleSheet1.css" rel="stylesheet" type="text/css" />

all other css effects i add work fine just none related to the gridview.

What am i missing?

Thanks in advance for any replies
 
Inserted the dot and still nothing, tried the same with a label control and that works fine so thanks for the . tip it must be something to do with gridview controls in asp
 
Like kayomani said, get the Firebug extension for Firefox and take a look. There really is no better way to debug CSS issues.

As another tip, give your CSS classes descriptive names. Gridview1 will get confusing!

EDIT: Just looked at your CSS. You're missing a colon and semicolon from it.

try
Code:
.Gridview1
{
    border: 1px solid blue;
}
 
Last edited:
Back
Top Bottom