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

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Footer pane creeps up underneath the right paneFooter pane creeps up underneath the right pane
Previous
 
Next
New Post
9/13/2011 2:50 AM
 
Hi everyone,

I have recently been working on the skinning for the site www.kyrlaw.com.cy but having problems with the footer pane, which seems to creep up underneath the right pane. (see http://www.kyrlaw.com.cy/Whoweare/App... or http://www.kyrlaw.com.cy/News.aspx)

The skins for this site are as follows: home.ascx (skin.css), internal.ascx (internal.css), employees.ascx (employees.css) and news.ascx (news.css).

The home and employees skins are working fine.  The footer problem appears only in the other 2 skins.  See below the news.css and news. ascx as an example:

--------------------------------------
news.ascx
--------------------------------------
<%@ Control language="vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Skins.Skin" %>
<%@ Register TagPrefix="dnn" TagName="LOGO" Src="~/Admin/Skins/Logo.ascx" %>
<%@ Register TagPrefix="dnn" TagName="NAV" Src="~/Admin/Skins/Nav.ascx" %>
<%@ Register TagPrefix="dnn" TagName="TEXT" Src="~/Admin/Skins/Text.ascx" %>
<%@ Register TagPrefix="dnn" TagName="BREADCRUMB" Src="~/Admin/Skins/BreadCrumb.ascx" %>
<%@ Register TagPrefix="dnn" Namespace="DotNetNuke.UI.Skins" Assembly="DotNetNuke" %>

<div id="Wrap">
    <div id="Header">
        <div id="Logo">
            <dnn:LOGO runat="server" id="dnnLOGO"  />
        </div>
    </div>
    <div id="Menu">
        <dnn:NAV runat="server" ID="dnnNAV" ProviderName="DDRMenuNavigationProvider" IndicateChildren="False" ControlOrientation="Horizontal" CSSControl="NavMenu">
            <CustomAttributes>
                <dnn:CustomAttribute Name="effect" Value="slide"/>
                <dnn:CustomAttribute Name="effectOptions" Value="{percent:200}"/>
                <dnn:CustomAttribute Name="effectSpeed" Value="slow"/>
            </CustomAttributes>
        </dnn:NAV>
    </div>
    <div id="Breadcrumbs">
        <dnn:TEXT runat="server" id="dnnTEXT"  CssClass="breadcrumb_text" Text="YOU ARE HERE:" ResourceKey="Breadcrumb" />&nbsp;<dnn:BREADCRUMB runat="server" id="dnnBREADCRUMB"  CssClass="breadcrumb_links" RootLevel="0" Separator="&nbsp;>&nbsp;" />
    </div>
    <div id="TopPane">
        <div id="TopPane" runat="server"></div>
    </div>
    <div id="Middle">
        <div id="ContentPane">
            <div id="ContentPane" runat="server"></div>
        </div>
        <div id="RightPane">
            <div id="RightPane" runat="server"></div>
        </div>
    </div>
    <div id="Footer">
        <div id="FooterPane" runat="server"></div>
    </div>
</div>
<div id="ControlPanel" runat="server"></div>

---------------------------------------------------------------------
news.css (left out the header, logo and breadcrumbs sections)
-------------------------------------------------------------------------

#TopPane
{
      clear: both;
    margin: 5px 0px 0px 0px;
        width: 100%;
}

#Middle
{
    width: 100%;
    margin: 5px 0px 5px 0px;
}

#ContentPane
{
        float: left;
    margin: 0px 10px 0px 0px;
    padding: 0px;
    width: 680px;
}

#RightPane
{
    float: right;
    margin: 0px 0px 0px 0px;
    width: 270px;
}


#Footer


    clear:both;
    margin: 1px 0px 20px 0px;
    padding: 10px 0px 0px 0px;
    border-top-style:dotted;
    border-top-width: 1px;
    border-top-color: #dcdcdc;
     width: 100%;
    height: 80px;
}
-------------------------------------------------------------

Any ideas as to what might be going wrong?
 
New Post
9/13/2011 10:39 AM
 
Did you get this fixed? I didn't see the problem in any of the newest browsers (IE9, FF, Chrome)

Look into this: http://www.webtoolkit.info/css-clearfix.html

I didn't see it in your code. Clearfix fixes the problems with floating elements 'breaking' the parent elements.

The footer floating up is common in these types of layouts. You have to make sure your your elements are properly clearing.

This is what my code typically looks like with clearfix css.

< div id = "header" >header goes here < / div >
< div id = "bd" class = "clearfix" >

< div id ="main" > main content left or right< / div >

< div id ="sidebar" > sidebar content floats left or right < / div >

< / div >
< div id = "footer" >footer goes here< / div >

See the class = clearfix on the id="bd" div? That makes sure the div doesn't 'collapse' when the main and sidebar are floating.

You should also check the Host Settings to see what doctype you have set.

Aaron
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Footer pane creeps up underneath the right paneFooter pane creeps up underneath the right pane


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