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
Jiteendra SampathiraoPosted Jul 25, 2011, 3:29 AM
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...
Eddie JackPosted Jul 26, 2011, 12:14 AM
Jitendra Sampathirao
Suthish NairPosted Jul 25, 2011, 3:56 AM
Priya LingePosted Jul 25, 2011, 1:04 AM
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.