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, ...Left Column BackgroundsLeft Column Backgrounds
Previous
 
Next
New Post
3/12/2011 8:52 AM
 
Hello..  I have a skin which is simple in that there is one top content panel and two columns below; left and right (see code below).

If there is something in the right column which is larger height-wise than the left column, everything below the left column is white.  Even though the left column should have a blue background.

Is there anything I can add so that the left column has it's blue background all the way to the bottom of the page?  And something which will work in all browsers?  ha-ha.. IE seems to have issues when Opera, Chrome and Firefox do not..

Thanks.. -Jeff

index.ascx
<div id="fullbody">
  <div id="body_wrapper">
    <div id="one_column">
      <div class="ContentPane" id="ContentPane" runat="server" visible="false"></div>
    </div>

    <div id="two_column">
      <div class="left_twocolumn" id="LeftPane" runat="server" visible="false"></div>
      <div class="right_twocolumn" id="InfoPane" runat="server" visible="false"></div>
    </div>

    <div style="clear: both;"></div>
  </div>
</div>

skin.css
.ContentPane
{
vertical-align: text-top;
text-align: left;
padding-left: 5px;
padding-right: 5px;
color:#333333;
font-size: 12px;
font-family: Arial;
}

.left_twocolumn
{
background-color: #CAD2E6;
border-bottom: 1px solid #DBE0EE;
border-right: 1px solid #85A1D1;
width: 161px;
vertical-align: text-top;
float: left;
}

.right_twocolumn
{
vertical-align: text-top;
float: right;
padding-left: 5px;
padding-right: 5px;
width: 775px;
color:#333333;
padding-top: 24px; 
padding-bottom: 24px; 
font-size: 12px;
font-family: Arial;
text-align: left;
}
 
New Post
3/12/2011 11:01 AM
 
Hi Jeff,

This is one of the main struggles when using Divs/CSS. The easiest fix would be to create a background image that is 1px high and the full width of the two_column div. Then set it to the background of two_column div. This will give the illusion that the left column is growing. However, I see that you have a border on the bottom of that column, so that might cause some issues.

You could use jQuery to force the columns to be equal heights. Here is a plugin that seems to do that (I haven't used it, though) http://plugins.jquery.com/project/equ...

There is a way to do it w/ CSS, but it  is quite a bit more advanced.  Here is the link for that: http://matthewjamestaylor.com/blog/eq... I have used this one before, and it wasn't extremely difficult, but it surely wasn't plug and play like the jQuery solutions looks like it could be.

Hope that helps.


Ralph Williams, Jr.
UX Designer / Front-End Web Developer
www.RalphWilliams.com
Ralph Williams Consulting
Twitter: twitter.com/ralphwilliams

Professional DNN7: Open Source .NET CMS Platform
 
New Post
3/12/2011 11:57 AM
 
You could always use a table  < LetTheFlamesBegin />



PS:  And it works in all browsers


Joe Brinkman
DNN Corp.
 
New Post
3/12/2011 1:58 PM
 
Joe Brinkman wrote:
You could always use a table  < LetTheFlamesBegin>



PS:  And it works in all browsers

Corrected that for you, if you want flames, don't close the tag


Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
3/13/2011 12:40 PM
 
Chris Hammond wrote:
Joe Brinkman wrote:
You could always use a table  < LetTheFlamesBegin>



PS:  And it works in all browsers

Corrected that for you, if you want flames, don't close the tag

 ha-ha..

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Left Column BackgroundsLeft Column Backgrounds


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