. Gridviewstyle
{
Border-Right: 2px solid # a7a6aa;
Border-bottom: 2px solid # a7a6aa;
Border-left: 2px solid white;
Border-top: 2px solid white;
Padding: 4px;
}
. Gridviewstyle
{
Color: # ffffff;
}
. Gridviewheaderstyle th
{
Border-left: 1px solid # ebe9ed;
Border-Right: 1px solid # ebe9ed;
}
. Gridviewheaderstyle
{
Background-color: # 5d7b9d;
Font-weight: bold;
Color: white;
}
. Gridviewfooterstyle
{
Background-color: # 5d7b9d;
Font-weight: bold;
Color: white;
}
. Gridviewrowstyle
{
Background-color: # f7f6f3;
Color: #333333;
}
. Gridviewalternatingrowstyle
{
Background-color: # ffffff;
Color: #284775;
}
. Gridviewrowstyle TD,. gridviewalternatingrowstyle TD
{
Border: 1px solid # ebe9ed;
}
. Gridviewselectedrowstyle
{
Background-color: # e2ded6;
Font-weight: bold;
Color: #333333;
}
. Gridviewpagerstyle
{
Background-color: #284775;
Color: # ffffff;
}
. Gridviewpagerstyle table
{
Margin: 0 auto 0 auto;
}
-----------------------------------------------------
Atributos de estilo no gridview
----------------------------------------------------
<Asp: gridview cssclass = "gridviewstyle" runat = "server">
<Footerstyle cssclass = "gridviewfooterstyle"/>
<Rowstyle cssclass = "gridviewrowstyle"/>
<Selectedrowstyle cssclass = "gridviewselectedrowstyle"/>
<Pagerstyle cssclass = "gridviewpagerstyle"/>
<Alternatingrowstyle cssclass = "gridviewalternatingrowstyle"/>
<Headerstyle cssclass = "gridviewheaderstyle"/>
</ASP: gridview>
---------------------------------------------------
Refer ê ncia ao arquivo de estilo a ser colocada na tag Header
----------------------------------------------------
<Link href = "estilos.css" type = "text/CSS" rel = "stylesheet" REV = "stylesheet"/>
--------------------------------------------------------
First, you can give a. CSS file that you save to reference on the page.
Body
{
Color: #000000;
Font-family: "verdana", "Arial", "Helvetica", "Sans-serif ";
Line-Height: 125%;
Margin-bottom: 0px;
Margin-left: 0px;
Margin-Right: 0px;
Margin-top: 0px;
Font-size: 9pt;
Background-color: white;
Font-size: 9pt;
Text-align: center;
Height: 100%;
}
A. Sort
{
Font-size: 10.2pt;
Color: white;
Text-Decoration: None
}
A: Link
{
Font-size: 9pt;
Color: #006699;
Line-Height: 15pt;
Font-family:;
Text-Decoration: underline;
}
A: visited
{
Font-size: 9pt;
Color: #006699;
Line-Height: 15pt;
Font-family:;
Text-Decoration: underline;