Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataList GridLine colors

Status
Not open for further replies.

tshad

Programmer
Jul 15, 2004
386
0
0
US
I can't seem to get the Gridline vertical lines to display in the color I want (#C0C0C0). The border works fine but when I set the GridLines to Vertical but the color is black even when I have it set to red. I tried all the different ...Style-BorderColor attributes but the border between the lists is always black.

<asp:DataList ID="DataList1" runat="server"
RepeatDirection="Vertical" RepeatColumns="3" BorderColor="#C0C0C0" BorderWidth="1"
BorderStyle="Solid" GridLines="Vertical" CellPadding="3" ItemStyle-BorderColor="Red">

How do I get the correct color?

Thanks,

Tom
 
I would use FireBug in FireFox to inspect the element. Then you can see exactly what element you need to style, this will also show what elements are taking on the CSS that you are setting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top