You need to Register for free and Login to post a message in the forum.

Forum

default.css overwriting my custom css
Last Post 2010-03-08 08:59 PM by Lee Sykes. 6 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
AnthonyUser is Offline
Nuke Pro
Nuke Pro
Posts:72

--
2010-02-24 08: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 CraigUser is Offline
    DNN Creative Support
    Nuke Master VI
    Nuke Master VI
    Posts:9008
    Avatar

    --
    2010-02-24 01:40 PM
    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, DNN Creative Support

    Subscribe to DNNCreative
    I recommend PowerDNN for DotNetNuke Hosting.
    SkynarcUser is Offline
    Nuker
    Nuker
    Posts:16

    --
    2010-02-24 03:41 PM
    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 CraigUser is Offline
    DNN Creative Support
    Nuke Master VI
    Nuke Master VI
    Posts:9008
    Avatar

    --
    2010-02-26 02:04 AM
    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, DNN Creative Support

    Subscribe to DNNCreative
    I recommend PowerDNN for DotNetNuke Hosting.
    Lee SykesUser is Offline
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945
    Avatar

    --
    2010-02-26 04:52 PM
    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
    RowahUser is Offline
    Nuke Newbie
    Nuke Newbie
    Posts:1

    --
    2010-03-05 07: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 SykesUser is Offline
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945
    Avatar

    --
    2010-03-08 08: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
    You are not authorized to post a reply.


    Active Forums 4.3

    Latest Forum Posts

    RE: "Good" hosting providers by ejcullen rene
    informative!!!
    RE: URL Master Module doesn't work on IHostASP hosting by ejcullen rene
    informative!!!
    RE: shared web hosting by ejcullen rene
    informative!!. i got hosting service from http://www.thewebpole.com/ my hosting company offers you
    RE: iPhone website logo in DNN root directory by JohnnieD
    I'm supposed to add this link to make my custom logo show up on iPhones. Where in DNN would I a
    iPhone website logo in DNN root directory by JohnnieD
    I'm trying to put an iPhone logo that I made into my site so when someone saves the website on their
    RE: Fixed size container by Joseph Craig
    Use an HTML module and style the container to have a fixed height and width. Set the overflow attr
    Fixed size container by Aggiedan97
    I am looking for advice or an actual container that has a fixed height (and width). An HTML module w
    RE: DNN 6.1 app_offline.htm by Joseph Craig
    If the site "works" in Chrome, Firefox and Safari, but not in IE8 look to IE8 as the problem. It is
    RE: DNN site automatically redirects to a different domain name. by Joseph Craig
    Make a copy what is in the portalalias table and then remove all but the localhost entry. Verify th
    DNN 6.1 app_offline.htm by Dave Hassall
    Hi As recommended I have successfully been using the app_offline.htm whilst performing upgrades t
    RE: DNN site automatically redirects to a different domain name. by imran shaikh
    Hi i have done same as mention in this post my dnn folder name is Trademaxomanupg with
    Enforce Terms Tutorial Update by Vistalogix Corporation
    I tried configuring my DNN 6.1.2 install to have a required "accept terms" checkbox as described in
    RE: Best Practices for Modifying a Custom Module by Joseph Craig
    Start up the development website, then install the module using the package that you have. Then, yo
    Best Practices for Modifying a Custom Module by schilders
    Good Morning, I'm needing to modify a custom built module created by another developer targeted f
    RE: Admin menu problem by alireza arabiyan
    hi in localhost i have http://localhost/senf/خانه.aspx and http://localhost/senf/Admi
    RE: Admin menu problem by Joseph Craig
    Yes, that is what you should have done. What is the URL for your home page? What is the URL for
    RE: Admin menu problem by alireza arabiyan
    hi first in localhost i add my domain.com as portal alias. then copy all files to host , restore my
    RE: Admin menu problem by Joseph Craig
    How did you move it? Have you added an entry in the portalalias table for the site's domain name?
    RE: Re: SQL SERVER 2008 R2 Remote connection by Joseph Craig
    Set up a user with dbo privileges and set the connection string for that user, rather than using Win
    Re: SQL SERVER 2008 R2 Remote connection by Prakasam Srinivasan
    I have successfully configured MSSQL Server 2008 r2 remote connection. I am using windows 7 and it h
    You are not logged in.
    You must log in to access all 
    650+ videos, tutorials, podcasts, and more.
    RSS Feeds