How to use two Css class in one Label ot textbox or any control
-
I have problem with Css. I would like to use two Cssclass in one control like label or textbox or any control. But i dont know how to do it . Can any body please help me to solve this problem.
Another is,
I have one Css in which i have Cssclass for Datagrid and i also have Universal selector in which i had declared font size and name. Same thing i had applied in Datagrid CssClass. Now when i applied Datagrid class it works perfectly except font name and size. It uses font name and size from Universal selector ( * {font-family: arial; font-size: 10pt; text-align:justify; }) so how do come up with this problem.Datagrid Cssclass is like
.DataGridHeader {color:black; background-color:Silver; font-weight:bold; font-size:10pt;}
.DataGridFooter {color:black; background-color:#ffffff;font-size:10pt;}
.DataGridItem {color:black; background-color:#F7F7F7; font-family:Arial; font-size:10pt; }
.DataGridAltItem {color:black; background-color:#ffffff; font-family:Arial; font-weight: lighter ;font-size:10pt; }
.DataGridPager {color:black; background-color:#ff99cc;font-size:10pt;}
.DataGridSelected {color:black; background: #ffc8bc; font-weight: lighter;font-size:10pt;}
.DataGridEdit {color:Blue; background: Gainsboro; font-weight: lighter;font-size:10pt;}
.DataGridButton {color:black;}
.DataGridButton:Hover {color:Blue;}
.DataGridItemHighlighted {color:#b22222; }
.DataGridAltItemHighlighted {color:#b22222; background-color:#B0C4DE;font-size:10pt;}Please help me to solve this problem
- The topic ‘How to use two Css class in one Label ot textbox or any control’ is closed to new replies.