Dear Frnds,
I want to Use CSS File in web application.can u help in how to use it in Web Form
any article on it will also help.
Thanks & regards,
Aamir
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Satyapriya NayakPosted Dec 8, 2011, 6:24 AM
Please refer the below links
http://www.beansoftware.com/ASP.NET-Tutorials/CSS-ASP.NET.aspx
http://dotnetguts.blogspot.com/2007/09/applying-css-to-aspnet-application.html
http://www.4guysfromrolla.com/articles/112906-1.aspx
Thanks
SenthilkumarPosted Dec 8, 2011, 6:19 AM
Add the new item and select the style sheet, it will allow to create the file with the .css name.
You can write the any number of class in that file and you can write in the two ways.
One when apply the style sheet to the page it will apply the style to the control. For that we need to use the #controlname.
#divName
{
color:black;
font-weight:bold;
font-size:12px;
}
Then create the aspnet page after that you have to include the css page. Drad and drop the css file from the browser will add the tag directly. Or include using the link tag.
Then create the control and apply the css class name from the file.
If it is html control then you have to use class attribute and cssclass for aspnet server controls.