Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The main difference between themes/skins and CSS are the HTML & Server Side Controls (SSC) only. We use skin files to format & cosmetics SSC which are not in HTML like <asp:Label>, <asp:TextBox> & </asp:RadioButtonList> etc...

But what if we use the rendered HTML SSC in CSS instead skin files to handle <asp:Label> & <asp:TextBox> etc...

ie: when SSC <asp:TextBox> rendered on browsers it shows <input type="text"> so if we write following style in my CSS file instead Skin, it also works...

input[type=text], textarea, select { 
    outline: none;   
    padding: 3px 0px 3px 3px;
    margin: 5px 1px 3px 0px;
    border: 1px solid #cccccc;  
    background: #ffffff;
    width: 150px;
    color: #484848;

So my question is, if we still can handle SSC with CSS do we really need skins? Or if I am missing anything please correct me, thanks.

share|improve this question
PLEASE don't RANDOMLY capitalize WORDS for EMPHASIS. – Yannis Feb 14 '13 at 13:16

It's a question of choice; I have never needed to use skins, I have always been able to do all the styling I wanted to with pure css.

Looking at your example it is purely the look and feel of controls you want to control - so I see no reason for you to use skins. Html for mark-up, JavaScript for client-side functionality and css for how things look. Keeping your mark-up free from script or style has its advantages and css is the best tool for styling.

I wouldn't mix and match css and skins for the simple reason that I would then find it more difficult to know whether I needed to look in a skin file or a css file to make a style change.

If you had need of setting properties on your SSC then a skin file would be something to consider, but as we've both said you're only looking for styling then I wouldn't complicate things by introducing skin files. StackOverflow has an answer to skin vs css that might be interesting to read.

share|improve this answer
Thanks Simon, I appreciated your feedback. I also use purely CSS for styling as it is indeed the best. However I just sharing my taught's to get more input except my understanding and your described very well. – mknayab Feb 20 '13 at 11:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.