Click here to Skip to main content
15,943,135 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 application.

How can I apply the style to my website?
Updated 6-Aug-12 10:17am
[no name] 6-Aug-12 16:25pm
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?

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:[^]
Share this answer
Sergey Alexandrovich Kryukov 6-Aug-12 18:42pm    
Good point :-). My 5.
Thanks a lot to Wes Aday. His link is so helpful.[^]
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