Can we call more then one CSS class on any controls?

 Posted by vishalneeraj-24503 on 5/6/2014 | Category: ASP.NET Interview questions | Views: 1410 | Points: 40
Answer:

YES,we can call.
Just give spaces in-between class names in CSSClass property.

For Example:-
<style type="text/css">

.border_color
{
border-color:yellow !important;
}
.font_bold
{
font-weight:bold !important;
color:blue;
}
</style>

<asp:Button ID="btn_save" runat="server" Text="Save" CssClass="border_color font_bold" />
<asp:TextBox ID="txt_name" runat="server" CssClass="font_bold border_color"></asp:TextBox>


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response