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, ...Gap at top of content pane.Gap at top of content pane.
Previous
 
Next
New Post
12/22/2010 3:12 PM
 
Hey guys, I am designing a skin and am having an issue with text not coming flush to the top of a container.

Here is the html markup for one side of it:

<div id="Left_SideBar">
    <div id="Left_Sidebar_Paneholder">
      <div id="LeftSidebarPane" class="LeftSidebarPane" runat="server"></div>
    </div>
  </div>

Where you have one div to control overall placement of the sidebar as well as background.  The middle div holds the content pane and can then be positioned around inside of the parent sidebar using CSS, and then of course you have the actual contentpane itself.

The issue I am having is that there is a gap at the top of the div that is there when scrolled all the way down showing the menu arrow for that module.  here is a picture showing what I am talking about:

From Public Photos

As you can see on the left there is this gap, but on the right there is not due to me scrolling the text up a bit.  I was wondering if there was anyway to have the text start flush at the top at the start.  It appears the issue is being caused by the menu for the module itself (which is the standard HTML module in case people were wondering).

Any help would be greatly appreciated since I have been struggling to find a fix for this particular issue.  Thanks guys!
 
New Post
12/25/2010 9:05 PM
 

Would you be able to provide a link to a live version of this? It's much easier to work out the issue with code rather than an image

If your example is local, and you use Firefox try using Firebug? (http://getfirebug.com/). Install this addon and use it to examine the elements of your HTML and the CSS settings applied to them, it should help you figure out if this is additional padding, margins or something else that's causing the extra space.

Hope this helps,

Rick.



PSDtoDNN - You supply the artwork... we'll build the skins!™
Website | Twitter | YouTube | Skype
 
New Post
12/27/2010 6:32 AM
 
Double check with your container, see if there are extra space made by table or div that use padding on it.
 
New Post
12/27/2010 11:33 AM
 
Rick Beddie wrote:

Would you be able to provide a link to a live version of this? It's much easier to work out the issue with code rather than an image

If your example is local, and you use Firefox try using Firebug? (http://getfirebug.com/). Install this addon and use it to examine the elements of your HTML and the CSS settings applied to them, it should help you figure out if this is additional padding, margins or something else that's causing the extra space.

Hope this helps,

Rick.

 Thanks for your Reply Rick,

The site is not live and is being developed locally, so unfortunately there is no way for me to be able to link over the actual code.  The CSS for the containers is as follows:

#Left_SideBar {
margin-top: 40px;
float: left;
height: 520px;
width: 300px;
background-image: url(Images/Left_SideBar_Container.jpg);
}

Please note that the margin of 40px is to space it out from the div above it, this has ZERO effect on the gap at the top of the div.

#Left_Sidebar_Paneholder {
width: 285px;
overflow: auto;
height: 400px;
}

I am still totally convinced that this has something to do with the way that DNN modules have their menu's at the top of a container.  As you can see in my picture, when you scroll down, the text is flush.  If you scroll to the top however, the gap is there.  

This would not be such an issue although it is affecting how I wish to have the site laid out. I am suprised nobody else has come across this issue before. They must be using layouts that are just different from mine where that extra space does not affect appearance as much.

 
New Post
12/27/2010 11:40 AM
 
andy wrote:
Double check with your container, see if there are extra space made by table or div that use padding on it.

 Thanks for your reply Andy,

There is no padding being used at all in my skin and I clear the padding at the start of my CSS as can be seen here:

body {
background-image: url(Images/Website_Background.jpg);
background-repeat: repeat-x;
margin:0;
padding:0;
}
 html {
margin:0;
padding:0;
}
h1, h2, h3, h4, h5, h6, p, pre,
blockquote, ol, dl, address {
margin: 0;
padding: 0;
}

Again if you look at the picture provided you will see that the sidebar to the left, the one scrolled all the way up, has a gap at the top that shows regardless of logged in/out and in what mode I am in while logged in (edit, view, layout).  The sidebar on the right is just scrolled down some, and as you can see, the text becomes flush with the container.  I just need to be able to have the text be flush all the time so that I can use CSS to position it the way I want to.

Perhaps this is not doable given the way that DNN inputs modules into containers, however I find it hard to believe I am the first person to come across this issue before.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Gap at top of content pane.Gap at top of content 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