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 4:52 AM
 

Hello

I'm trying to create a skin with a fixed header, a fixed footer and a scollable content.

I found this site http://limpid.nl/lab/css/fixed/header... which is exactly what I need

(It works great with Firefox and IE6) but I can't make it work the same way with DotNetNuke 5

(No scrollbar appears with Firefox, footer scrolls with IE6)

Has anybody suggestions ?

 
New Post
4/16/2010 7:10 AM
 

I think you will have to set the height of the Form too.

(that the main differnce between DNN and a static HTML page)

 
New Post
4/16/2010 7:39 AM
 

Freddy,

In essence these are 2 fixed divs, one positioned at the top and another at the bottom. This should work with DNN, if you create 2 absolutely positioned DIVs 100% wide and place one at the top and another at the bottom of the acreen.

A good tool is Firebug (https://addons.mozilla.org/en-US/fire...) if you're using Firefox, this will let you see the CSS settingd for the elements of the layout you're looking at.

Rick.



PSDtoDNN - You supply the artwork... we'll build the skins!™
Website | Twitter | YouTube | Skype
 
New Post
4/16/2010 9:44 AM
 

Thank you for the advices. I already use FireBug and I tried this simple code, starting from the file "No Skin.ascx" :

Skin.html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml...">
<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" class="Header">Header</div>
 <div id="Content" class="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" class="Footer">Footer</div>
</body>

Skin.css :

html
{
 overflow:hidden;
}

.Header
{
 position:absolute;
 top:0;
 height:50px;
 width:100%;
 background:Blue;
 overflow:hidden;
}
#Form
{
 height:100%;
}
.Content
{
 overflow:auto;
}
.Footer
{
 position:absolute;
 bottom:0;
 height:50px;
 width:100%;
 background:Red;
 overflow:hidden;
}

 It doesn't work, I still have the same problem.

 
New Post
4/16/2010 4:29 PM
 
Shouldn't .Header and .Footer have "position:fixed"? (as opposed to "position:absolute;".) You would have to use a fix for IE6 but it shouldn't be a big deal.
 
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