Hi, how do I refer to all my asp:buttons in css???
CheersMost presentational controls, such as the one in question, subclass System.Web.UI.WebControl, which has a CssClass property.
Just pass the name of your CSS class.
Regards.eh? Sorry but I'm very new to this. I just want a way of saying:
button {
width: 169px
}
etc on my stylesheet.
I tried:
asp.button{
}
With no luck?For clarification:
<asp:Button id="btnTemp" Text="Click" CssClass="btn" runat="server" />
Your css:
.btn
{
width: 169px;
}
.NET and CSS have no native way of communication like you demonstrated.
Regards.Do you know why this wont this work?
.text
{
width: 30px;
top: 288;
left: 88;
}
<asp:textbox id="idtext" runat="server" CssClass="text">Ok no probs, I didn't realise you have to run the script for it to work. OOps Thanks for your help
CheersMost presentational controls, such as the one in question, subclass System.Web.UI.WebControl, which has a CssClass property.
Just pass the name of your CSS class.
Regards.eh? Sorry but I'm very new to this. I just want a way of saying:
button {
width: 169px
}
etc on my stylesheet.
I tried:
asp.button{
}
With no luck?For clarification:
<asp:Button id="btnTemp" Text="Click" CssClass="btn" runat="server" />
Your css:
.btn
{
width: 169px;
}
.NET and CSS have no native way of communication like you demonstrated.
Regards.Do you know why this wont this work?
.text
{
width: 30px;
top: 288;
left: 88;
}
<asp:textbox id="idtext" runat="server" CssClass="text">Ok no probs, I didn't realise you have to run the script for it to work. OOps Thanks for your help