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, ...CSS - Ligning Up the DIVS...CSS - Ligning Up the DIVS...
Previous
 
Next
New Post
4/17/2007 9:54 AM
 

Greetings all.

I am trying to do a pure css skin and being a relative newbie am struggling.

The problem I am wrestling with at the moment is have my LeftPane ContentPane and Right Pane all align.

Here is the relevent code.....don't mind the colours, I am using that to see how it looks in my browser.

 Website is: www.velablue.com

  Please help. Thanks.

 

the html...

    <div id="Content">
        <div id="TopPane" runat="server"></div>
        <div id="MiddleContent">
            <div id="LeftPane" runat="server"></div>
            <div id="ContentPane" runat="server"></div>
            <div id="RightPane" runat="server"></div>
        </div>
        <div id="BottomPane" runat="server"></div>
    </div>

-----

the css..

#Content{
    width: 100%;
    clear: both;
    padding-left: 2px;
    padding-right: 2px;
    padding-top: 2px;

}
#TopPane{
    background-color:navy;
}
#MiddleContent{
    width: 100%;
}
#LeftPane{
    background-color:orange;
    float: left;
    width: 20%;
    margin-left: 2px;
}
#ContentPane{
    background-color: purple;
    float: left;
    width: 59%;
    margin-left: 2px;
}
#RightPane{
    background-color:teal;
    float: right;
    width: 20%;
    margin-left: 2px;
}
#BottomPane{
    background-color:white;
}

 
New Post
4/17/2007 10:00 AM
 

Oh, thougtht I might mention. Just to add to my confusion I do get the following to line up...

 

 <div id="Header">
    <div id="SystemContainer">
            <div id="CurrentDate">[CURRENTDATE]</div>
            <div id="UserMenu">
                <Snapsis:NavMenu id="AdminMenu"
                Level="0-1" Type="SelectList"
                IncludeTabs="Admin,Host" runat="server" /></div>
            <div id="UserLogin">[USER]&nbsp;&nbsp;[LOGIN]</div>
        </div>
    </div>

 

#SystemContainer{
    background-color:lime;
    width: 100%;
    padding-left: 2px;
    padding-right: 2px;
    padding-top: 2px;

}
#CurrentDate{
    background-color: blue;
    width: 25%;
    float: left;
    margin-left: 2px;
    text-align: left;
}
#UserMenu{
    background-color: red;
    width: 49%;
    float: left;
    margin-left: 2px;
    text-align: center;
}
#UserLogin{
    background-color: blue;
    width: 25%;
    float: right;
    margin-left: 2px;
    text-align: right;
}

 
New Post
4/17/2007 10:48 AM
 

My best advice is to add one table to hold all your content in place.  

I struggled with the same problem for days trying to get it all to work cross-browser until I came to this conclusion:

Having a single table in your skin is not a sin.


DotNetNuke Modules from Snapsis.com
 
New Post
4/17/2007 11:05 AM
 

Thanks John.

I know it's not a sin, but I was still trying to get it to work. I don't see why it cannot.

I don't understand how a table is going to solve the problem I am having?

Let me show you my full code if you have time to read it....... it is very basic for now as I am just tryin got get the layout to align,,,

The HTML:

<%@ Register TagPrefix="Snapsis" Namespace="Snapsis.DNN.Skins" Assembly="Snapsis.DNN.NavMenu" %>
<div id="PageContainer">
    <div id="ControlPanel" runat="server"></div>
    <div id="Header">
        <div id="LanguageContainer">LanguageContainer</div>
        <div id="TopMenuContainer">
            <Snapsis:NavMenu id="TopMenu" DisplayIcon="true"
            Level="0-0" Type="Tabs"
            IncludeTabs="About Vela Blue,Contact,Join Now,Learn To Sail,Lifestyle Business Opportunity" runat="server" />
        </div>
        <div id="ArtContainer">
            <div id="LogoContainer">[LOGO]</div>
            <div id="BannerContainer">[BANNER]banner</div>
        </div>
        <div id="MainMenuContainer">
            <Snapsis:NavMenu id="MainMenu" DisplayIcon="true"
            Level="0-0" Type="Tabs"
            ExcludeTabs="About Vela Blue,Contact,Join Now,Learn To Sail,Lifestyle Business Opportunity,Admin,Host" runat="server" /></div>
        <div id="SystemContainer">
            <div id="CurrentDate">[CURRENTDATE]</div>
            <div id="UserMenu">
                <Snapsis:NavMenu id="AdminMenu"
                Level="0-1" Type="SelectList"
                IncludeTabs="Admin,Host" runat="server" /></div>
            <div id="UserLogin">[USER]&nbsp;&nbsp;[LOGIN]</div>
        </div>
    </div>

    <div id="Content">
        <div id="TopPane" runat="server"></div>
        <div id="MiddleContent">
            <div id="LeftPane" runat="server">
                <Snapsis:NavMenu id="ChildMenu"
                Level="1-3" Type="Tabs" OnlyExpandActive="true" ShowType="WithActiveParent"
                runat="server" /></div>
            <div id="ContentPane" runat="server"></div>
            <div id="RightPane" runat="server"></div>
        </div>
        <div id="BottomPane" runat="server"></div>
    </div>
       
    <div id="Footer">
        <div id="Copyright">[COPYRIGHT]&nbsp; &nbsp;[TERMS] &nbsp;&nbsp;[PRIVACY]</div>
        <div id="Address"></div>
    </div>
</div>

-----------------------

The CSS

body {
    margin: 0;
    padding: 0;
    font: arial, hevetica, sans-serif;
    background-color: #99CCFF;
    text-align:center;
}
#PageContainer{
    width:770px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}
#Header{
    background-color:transparent;
    width: 100%;
}
#LanguageContainer{
    width: 100%;
    background-color: aqua;
}
#TopMenuContainer{
    background-color:aqua;
    width: 100%;
}
#ArtContainer{
    width: 100%;
    float: none;
}
#LogoContainer{
    background-color:blue;
    width:20%;
    float:left;
}
#BannerContainer{
    background-color:black;
    width:79%;
    float:left;
}
#MainMenuContainer{
    background-color:fuchsia;
    clear: both;
}
#SystemContainer{
    background-color:lime;
    width: 100%;
    padding-left: 2px;
    padding-right: 2px;
    padding-top: 2px;

}
#CurrentDate{
    background-color: blue;
    width: 25%;
    float: left;
    margin-left: 2px;
    text-align: left;
}
#UserMenu{
    background-color: red;
    width: 49%;
    float: left;
    margin-left: 2px;
    text-align: center;
}
#UserLogin{
    background-color: blue;
    width: 25%;
    float: right;
    margin-left: 2px;
    text-align: right;
}
#Content{
    width: 100%;
    clear: both;
    padding-left: 2px;
    padding-right: 2px;
    padding-top: 2px;
}
#TopPane{
    background-color:navy;
}
#MiddleContent{
    width: 100%;
}
#LeftPane{
    background-color:orange;
    float: left;
    width: 20%;
    margin-left: 2px;
}
#ContentPane{
    background-color: purple;
    float: left;
    width: 59%;
    margin-left: 2px;
}
#RightPane{
    background-color:teal;
    float: right;
    width: 20%;
    margin-left: 2px;
}
#BottomPane{
    background-color:white;
}
#Footer{
    background-color:yellow;
}

 

Thanks...

 
New Post
4/17/2007 11:22 AM
 

I have to agree with John here, I have tried PureCSS skins for DNN before with no luck other than thinning out my hair. Keep in mind DNN originally started in the bad-old days of table-based design and the team has made significant progress in moving towards more CSS-friendly code, but for all the CSS you put in the skin, many modules are still going to use tables which, in my experience, blow CSS all out of whack.

However, I think I recall Nina saying she'd developed some CSS skins, maybe she has some thoughts?

SB


Wells Doty Jr
Online Content Development
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...CSS - Ligning Up the DIVS...CSS - Ligning Up the DIVS...


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