default.css overwriting my custom css
Last Post 03/08/2010 2:59 PM by Lee Sykes. 6 Replies.
Author Messages
Anthony
Nuke Pro
Nuke Pro
Posts:72


--
02/24/2010 2:13 AM
    Hi, I'm implementing a custom design in a dnn-skin. The problem that I'm facing is that some of my custom css style definitions are overwritten by the default style definitions for DotNetNuke. This is for example the case with the a:link definition. How can I prevent dnn style definitions overruling my custom style definitions? Thanks, Anthony www.webmove.be
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    02/24/2010 7:40 AM
    Styles defined in your skin.css file should override those defined in _default.css.

    If you have a single portal installation, though, you can delete definitions from _default.css without too many worries.

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    Skynarc
    Nuker
    Nuker
    Posts:16


    --
    02/24/2010 9:41 AM
    Hi Joseph,

    Thanks for replying on this. I am having a similar problem and I was wondering if it is possible to exclude the default.css file from my font end design altogether?

    I am trying to get my DNN projects to a Blueprint layout where I can just drop it in and start working but the default.css file overrides some of the resest css rules which is what I am trying to avoid.

    If it's possible to exclude it from my front end but have it working only for the back end stuff, that would be great.

    Thanks,
    James
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    02/25/2010 8:04 PM
    Take a look here

    "This skin object allows you to unload any CSS file that the DotNetNuke® framework injects in the head of the page.
    It can be used to unload Default.css for instance, or a spcific modules CSS file."

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    Lee Sykes
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945


    --
    02/26/2010 10:52 AM
    hello,

    That is useful skin object and well worth checking out. If you need information on how to override the default DotNetNuke styles, you can also look at the code in the skin:
    Andreas 01

    in this tutorial we show you:

    and in there we show you the process of overriding the default styles.

    The new skin object will be a more efficient method however, thanks,

    Lee Sykes
    Site Administrator
    Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

    Twitter: www.twitter.com/DNNCreative

    Lee Sykes's Facebook Profile
    Rowah
    Nuke Newbie
    Nuke Newbie
    Posts:1


    --
    03/05/2010 1:00 PM
    Posted By Joseph Craig on 24 Feb 2010 7:40 AM
    Styles defined in your skin.css file should override those defined in _default.css.

    If you have a single portal installation, though, you can delete definitions from _default.css without too many worries.


    Is there something we have to do to get this behavior? The default.css seems to take priority on my site. My specific example occurs in the A:links style. I see it being disabled in the developer view in IE. It laves the default.css as active and marks out the conflicting skin.css as well as the div css I placed. Edit: I found my issues to be that the font color css was not taking over for the A:link color.
    Lee Sykes
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945


    --
    03/08/2010 2:59 PM
    If you are looking for coding examples of overriding styles in the default.css check out the Andreas 01 skin mentioned above.
    Lee Sykes
    Site Administrator
    Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

    Twitter: www.twitter.com/DNNCreative

    Lee Sykes's Facebook Profile


    ---