I am designing a website using CSS but my CSS not properly apply on asp controls like
Apply CSS on ASP controls
Hi..
I am designing a website using CSS but my CSS not properly apply on asp controls like etc. If i used html input button in place of asp button control. It accepts my CSS properly. What should i do that my asp control accepts my CSS properly.
I am designing a website using CSS but my CSS not properly apply on asp controls like
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Jiteendra SampathiraoRank #585 · 4.1K reputationPosted Jul 24, 2011, 11:29 PM EDT
Create the css file under a folder.(ex: Style folder0
In the Head tag write link tag like this...
in the abc.CSS file
you have to declare like this
.cssforbutton
{
//your styles
}
To add style to one control like button control...
Priya LingeRank #785 · 2.9K reputationPosted Jul 24, 2011, 9:04 PM EDT
You have add reference of CSS file in project. like,
<%@ Page Language="C#" CodeFile="css_two.aspx.cs" Inherits="CSS.CSSProgrammatically" %>
For more information check below link.
http://triaslama.wordpress.com/2008/05/07/css-in-aspnet-server-controls-declaratively-vs-programmatically/
Hope this will help you.
Thanks.
Suthish NairRank #92 · 22.8K reputationPosted Jul 24, 2011, 11:56 PM EDT
Eddie JackRank #2,520 · 556 reputationPosted Jul 25, 2011, 8:14 PM EDT
Jitendra Sampathirao