views:

99

answers:

4

Hi,

can anyone tell me themes are better or CSS style sheets are better in asp.net for design?

Please explain the concept also with an example.

Thanks Rupa

A: 

Hi, Basically themes is built for server controls. You can not use themes with html controls. The css is used for server controls,html controls and tags. If you are using only server controls then you can use "theme" because you can enable or disable theme on control basis, page basis and whole website basis. In my opinion CSS is best way to design website. because after rendering theme it shows the css style with controls and tags. You can also use "Theme" and "CSS" together.

Deepak
+1  A: 

You should combine them. Use your css files in the theme folder for your normal styling of all the html elements in your website (include all the generated elements).

In the skin file of a control, you can set the default css class. Other properties like the layout and default behaviour of the elements (sample: calender control) are editable here too.

Skin files are good for all layout specific configuration you can't easily do with css, but with the .net properties of the controls.

michl86
A: 

Hi,

Same query is avilable at my post at following link.

http://stackoverflow.com/questions/1163211/asp-net-2-0-apptheme-how-can-we-utilize-apptheme-in-best-way-for-my-asp-net-we

It make you happy

Hemant Kothiyal
+2  A: 

A theme can specify both .skin files and .css files. So there no reason not to use themes.

As for skins versus css: Go for css if its css'able.

Arjan Einbu