Click here to Skip to main content
15,905,616 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a designed css style but I don't know how to aply it to my asp.net application.

How can I apply the style to my website?
Posted
Updated 6-Aug-12 10:17am
v4
Comments
[no name] 6-Aug-12 16:25pm    
http://msdn.microsoft.com/en-us/library/tbze79kd(v=VS.80).aspx
Pooya F.A 7-Aug-12 16:28pm    
thanks. Helpful.
[no name] 7-Aug-12 16:39pm    
You're welcome. Glad it helped.
Sergey Alexandrovich Kryukov 6-Aug-12 18:44pm    
How come it can be a problem? Do you know how to apply CSS to HTML? And ASP.NET merely generates HTML, so what's the difference? Are you missing something?
--SA

Well, looks like you have done it in the opposite way: people don't make applications for a stylesheet, one makes stylesheet for an application. If you payed for a skin package, without supplying your classes to the designer, you probably wasted your money. Actually you can make your application use a stylesheet not designed for you, but it wont be easy. You need at least a sample page that is built with it, than use IE Developer tools for example to discover how the page is built and how the classes are applied. Than, you have to redesign your application to use the same layout, and same class names as the skin you have bought. You will need to use the CssClass[^] property to specify the class names. View also this tutorial: http://www.asp.net/web-forms/videos/building-20-applications/lesson-6-working-with-stylesheets-and-master-pages[^]
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 6-Aug-12 18:42pm    
Good point :-). My 5.
--SA
Thanks a lot to Wes Aday. His link is so helpful.

http://msdn.microsoft.com/en-us/library/tbze79kd(v=VS.80).aspx[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900