Only one css for more Themes

Last post 07-05-2009 5:42 PM by ctheriault. 1 replies.

Sort Posts:

  • Only one css for more Themes

    07-02-2009, 8:59 AM
    • Member
      point Member
    • LJK8
    • Member since 07-02-2009, 12:48 PM
    • Posts 1

     Hi,

    Sorry, but I do not understand English very well.
     
    Using javascript to login a user back to me the characteristics of the client, and having them want to upload a theme rather than another.
    So far so good. The problem is that every Theme needs one or more css and a skinfile. Given that 80% of the attributes of the css files are the same theme from a theme, I was wondering if it was possible to 'abstract' from the same common properties into a single external css.
  • Re: Only one css for more Themes

    07-05-2009, 5:42 PM
    Answer
    • Participant
      1,547 point Participant
    • ctheriault
    • Member since 04-10-2009, 12:33 PM
    • Posts 276

    LJK8:
    I was wondering if it was possible to 'abstract' from the same common properties into a single external css

    Yes you can.

    A web page can reference several stylesheet. Common and "static" styles can be defined in a separate file.

    Then you will need to "manually" include the a <link href="...." rel="stylesheet" type="text/css"..... /> in your web pages, because it would get include automatically like it does for the stylesheet of the theme.

     

    ----
    Don't forget to mark this posting as an "Answer" if it is helpful to you
Page 1 of 1 (2 items)