Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Custom skin getting overwrittenCustom skin getting overwritten
Previous
 
Next
New Post
4/5/2013 3:13 PM
 

I apologize for posting it here, but posting within the customer area hasn't got me any answers yet, and I am desperate.  I need help/guidance with maintaining styles based on classes/IDs that I have defined - with no extra help from DNN's built in CSS. Please see below:

----

This will be long...

I am trying to understand why extra host level CSS is being thrown into my portal.  My new site will have three skins.  We will call them home, sub1 and sub2.

I had already created one skin for sub1: skins-->sub1-->skin.ascx and skin.css. 

skin.ascx has three panes for a page specific photo, the main content and a highlight content. 

skin.css imports several other CSS files that define everything that needs to be defined for the entire portal.  In HTML layout everything looks perfect.

Skin.css:

@charset "UTF-8";
/* CSS Document */

/******************** E.M. CSS RESET ********************/
@import url("/portals/cde/css/reset.css");

/******************** SITE FRAMEWORK ********************/
@import url("/portals/cde/css/master.css");
@import url("/portals/cde/css/header.css");
@import url("/portals/cde/css/nav.css");
@import url("/portals/cde/css/footer.css");

/****************** SUB1 SPECIFICITY ******************/
@import url("/portals/cde/css/sub1.css");

html {overflow-y: scroll;}

------

When I create a blank page and specify sub1 as its parent skin, everything is looking great, until I add one HTMLPro module. That's when different DNN CSS files start to appear, and my panes start to have extra padding, not use the right font at all, etc..  This is what appears:

<link href="/Portals/_default/default.css?cdv=35" type="text/css" rel="stylesheet" />
    <link href="/DesktopModules/HTML/module.css?cdv=35" type="text/css" rel="stylesheet" />
    <link href="/portals/cde/Skins/sub1/skin.css?cdv=35" type="text/css" rel="stylesheet" />
    <link href="/Portals/_default/Containers/Gravity/container.css?cdv=35" type="text/css" rel="stylesheet" />


How can I stop links #2 and #4 (Bold above) to stop appearing?  Why do I need them when 100% of the layout is defined in my own CSS.

 

A part of my skin file:

<div id="content">

            <div id="PS-CDE-COE">
                <h3><a href="#" title="My Title"><span>My Title</span></a></h3>
            </div>
            <div id="ContentPane" runat="server">

            </div>

        </div>

 

Browser output (why so much extra stuff):

 


<div id="content">

    <div id="PS-CDE-COE">
        <h3><a href="#" title="My Title"><span>My Title</span></a></h3>
    </div>
    <div id="dnn_ContentPane">

        <div class="DnnModule DnnModule-DNN_HTML DnnModule-1470">
            <a name="1470"></a>
            <div class="DNNContainer_Title_h2 SpacingBottom">
                <h2><span id="dnn_ctr1470_dnnTITLE_titleLabel" class="TitleH2"></span>


                </h2>
                <div id="dnn_ctr1470_ContentPane">
                    <!-- Start_Module_1470 -->
                    <div id="dnn_ctr1470_ModuleContent" class="DNNModuleContent ModDNNHTMLC">

                        <div id="dnn_ctr1470_HtmlModule_lblContent" class="Normal">
                            <h1>Header 1</h1>
                        </div>

                    </div>
                    <!-- End_Module_1470 -->
                </div>
                <div class="clear"></div>
            </div>
        </div>
    </div>

</div>
<!--contentCLOSE-->

 

 

I really need help with this as I am brand new to DNN but certainly not new to CSS/HTML/ASP.NET.

BTW: I don't have a container for sub1 skinset because I am not sure why I really need it.

Thank you.


 
New Post
4/6/2013 12:21 AM
 
the dnn skin structure is built on a number of layers

1. skin
2. contentpane
3. container
4. module

It will load all these layers every time a page is created - including wrappers around each layer - what you are seeing is the wrappers for skin and contentpane and container and module.

and likewise the stylesheets are also built on a number of layers.

Default.css
Portal.css
Skin.css
Module.css

If you are building your OWN skin - you have a couple of options

1. manually clear out default and portal and replicate EVERYTHING in them exactly to your specifications in skin.css - if you dont large parts of dnn will stop working - all core layout,edit,controls etc

2. leave portal.css and default.css alone - and enhance it with your own layout in skin.css

Pretty much everyone goes down the later path - the core portal.css and default.css skins define all the dnn core elements - and your skin adds your custom layout over the top.

dnn is a content management system that you need to work with not fight against.
For that cms to work it needs a lot of css defined to control all its core layout features. These are going to have to be defined somewhere - either in your skin or in the core.

With regard to containers - you have to declare and use one - if you dont dnn will inject a default one - the container wrapper has a lot of elements that control the CMS design elements.

In addition regarding modules - many modules will inject their own module css - to control how the complex layout elements of that particular module are positioned. You cant prevent that css being injected - the module would fail to work in many cases.

Westa
 
New Post
4/8/2013 8:48 AM
 
Wes,

Thanks for your reply.

I started experimenting with FortyFingers unloadcss option, but that breaks the admin interface. So I have to find another solution.

I didn't touch portal.css and default.css, but the issue I am running into is that my skin.ascx works fine until I enter a simple HTML module where content editing will take place. As soon as I do that, items like H1, P, H2, etc. in the ContentPane get all messed up - font, font size, etc. Even the paddings. This is where I am struggling. I have one skin.ascx with three panes right now, one being ContentPane. In ContentPane each page will have different content, starting at H1 all the way to the end. For now there's no common module to add to these pages.

My skin.css does the entire layout - logo, background, text style, three layers of navigation, etc. I just need that to fit within DNN. Of course I don't want to fight it. Coming from a straight html layout it's a little confusing.

Would you be kind enough to take a quick peek at the CSS I have? I am sure I will get a hang of it soon and once it works for one site, I can follow the same path for the rest of the portals.

Thank you,
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Custom skin getting overwrittenCustom skin getting overwritten


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out