Skin vs CSS

Last post 04-25-2007 10:22 AM by Adam.Kahtava. 1 replies.

Sort Posts:

  • Skin vs CSS

    04-25-2007, 9:07 AM
    • Loading...
    • Mehdi6002
    • Joined on 01-09-2007, 1:47 PM
    • Ireland
    • Posts 97

    Hi guys,

    For formatting and styling my GridView control and DetailsView, should I use Skin in theme or a css file.

    I was looking around there is a ASP.NET CSS Adaptor or you can use skin. I create a skin for my GridViews, but is there any difference in which to use ... ?

    Thanks 4 ur help in advance,
    Mehdi

    Mehdi Entezary
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Mark as Answer” on the post that helps you. This can be beneficial to other community members reading the thread.
  • Re: Skin vs CSS

    04-25-2007, 10:22 AM
    Answer

    Use the ASP.NET CSS Adapters or Try using both Skins and CSS.

    Use a skin to hook CSS selectors (like ID and Class) into your ASP.NET controls, then use a Cascading Style Sheet to set your display properties.

    Skins depend on the Style attributes just like Style Sheets, It's not really a case of Skins Vs CSS because without Styles we couldn't have Skins.

    A Skin based approach contributes to code bloat since most ASP.NET generated style attributes are rendered into CSS inline styles. A StyleSheet based approach contributes to leaner markup, makes better use of caching, contributes to a faster loading page, can be reused across sites (independent of the programming language or platform), and can easily be maintained by web designers.

Page 1 of 1 (2 items)
Microsoft Communities
Page view counter