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, ...Fixed header and footerFixed header and footer
Previous
 
Next
New Post
4/16/2010 5:33 PM
 

Where's the body css from the example?

 
New Post
4/28/2010 9:19 AM
 

Hello,

I finally found a solution using FireBug, fixed position and IE fix :

FixedHeaderFooter.doctype.xml :

<SkinDocType>
    <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">]]>
</SkinDocType>

FixedHeaderFooter.html :

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <link rel="stylesheet" type="text/css" href="skin.css" />
    <title></title>
</head>
<body>
    <div id="header">Header</div>
    <div id="content">
        <table cellspacing="0" cellpadding="0" border="0" summary="Main table for design" id="Table1">
            <tr valign="top"><td>Content</td></tr>
            <tr valign="top">
                <td id="ContentPane" runat="server" valign="top"></td>
            </tr>
        </table>
    </div>
    <div id="footer">Footer</div>
    <object id="StylesIE6" codetype="dotnetnuke/server" codebase="STYLES">
        <param name="Name" value="IE6Minus" />
        <param name="StyleSheet" value="css/ie6skin.css" />
        <param name="Condition" value="LT IE 7" />
        <param name="UseSkinPath" value="true" />
    </object>
</body>

FixedHeaderFooter.css :

/* Empty File */

skin.css :

html {
    overflow : auto
}
body {
    margin:0;
    padding:50px 0 50px;
}
div#header {
    background:Blue;
    height:50px;
    left:0;
    position:fixed;
    top:0;
    width:100%;
}
div#footer {
    background:Red;
    bottom:0;
    height:50px;
    left:0;
    position:fixed;
    width:100%;
}
* html body {
    overflow:hidden;
}
* html div#content {
    height:100%;
    overflow:auto;
}

css/ie6skin.css :

body {
    background: url(null) fixed ; /* avoid hopping */
}
div#header{
    position: absolute;
    top:expression(documentElement.scrollTop);
}
div#footer{
    position: absolute;
    top:expression(documentElement.scrollTop+documentElement.clientHeight-50+"px");
}

As a beginner with CSS, I don't understand every line of this code but this seems to work with IE6 and Firefox

(except selection menus of the editor that appears over the header when scrolling in IE6, but it doesn't matter)

Leave your comments if you think some changes should be done.

Thanks.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Fixed header and footerFixed header and footer


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