December 29, 2010

CSS files vs skin files

Question by just_name

Q: I want to know :

  1. Are the skin files can replace the
    CSS files?
  2. What are the advantages of
    skin files?

  3. Are those files can provide more
    brilliant things the CSS files
    can’t?

    and

  4. When to use skin files in my web
    application?

Answer by Geoff Appleford

Asp.net skins are one part of asp.net Themes. From the MSDN docs:

Themes are made up of a set of
elements: skins, cascading style
sheets (CSS), images, and other
resources. At a minimum, a theme will
contain skins. Themes are defined in
special directories in your Web site
or on your Web server.

Skins are used to define default markup for asp.net server controls:

<asp:button runat="server" BackColor="lightblue" ForeColor="black" />

whereas CSS is used to style your native HTML elements (of course asp.net server controls render as native elements so CSS can also be used to style these

Answer by Starx

CSS Files is a .css file contains style tags nothing more (for example, page.css)


But, a theme or skin file might be a set of files containing images, icons, css files, js files which can be used or integrated as sort of a plugin to change the appearance of the Application. (for example, a joomla template)

Author: Nabin Nepal (Starx)

Hello, I am Nabin Nepal and you can call me Starx. This is my blog where write about my life and my involvements. I am a Software Developer, A Cyclist and a Realist. I hope you will find my blog interesting. Follow me on Google+

...

Please fill the form - I will response as fast as I can!