How to apply different skin.css for each page differently
Last Post 12/18/2011 9:43 AM by Joseph Craig. 1 Replies.
Author Messages
Ramesh Narasimhan
Nuke Active Member
Nuke Active Member
Posts:39


--
12/18/2011 6:57 AM
    How to apply different skin.css for each page differently. I want different styles for the panes(content pane,bottom pane, left pane) for each page seperately. I mean multiple skin.css. Can i pls know how to achieve this.
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    12/18/2011 9:43 AM
    Here is one idea: add a page-specific class to those panes in your skin file. You would do something like:

    class="special_<%=PortalSettings.ActiveTab.TabName %>"
    


    When the page is created, you will get a different class for each page. For example, on the Home page you will get class="special_home"

    While I have never tried it, this should also work if you want to load a special css file. You might want to use the 40fingers Skin Helper (http://dnnskinextensions.codeplex.c...iew/66281) along with this trick.

    Joe Craig, Patapsco Research Group
    Complete DNN Support


    ---