Learn More





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 justify content paneleft justify content pane
New Post
11/16/2013 12:28 AM

I have a content pane called 'contentpane' that I need to left justify for on large monitors it stretches and a large gap shows up...  Below is the code to my .ascx file.  How do I left justify the content pane?  Below my .ascx is my .css


<%@ Control language="vb" CodeBehind="~/admin/Skins/skin.vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Skins.Skin" %>
<%@ Register TagPrefix="dnn" TagName="LOGO" Src="~/Admin/Skins/Logo.ascx" %>
<%@ Register TagPrefix="dnn" TagName="JDMENU" Src="~/DesktopModules/JDMENU/JDMENU.ascx" %>

<div id="skinall">
    <div class="skinleft">
        <div class="skinlogo"><dnn:LOGO runat="server" id="dnnLOGO" /></div>
        <div class="skinmenu"><dnn:JDMENU runat="server" id="dnnJDMENU" /></div>
        <div class="skinleftpanebox">
            <div class="leftpane" id="LeftPane" runat="server"></div>
    <div class="contentWrap">
        <div id="ContentPane" class="ContentPane dnnpane" runat="server" visible="false"></div>

------------ CSS file ---------------

 @charset "utf-8";

.Head{border:none!important; margin:0px!important;}
.ControlPanel .RadComboBox{width:205px!important;}
.ModuleTitle_SubMenu{ z-index:1000!important}
.clear { clear:both; font-size:0px;}
html,body {font-family: Arial, Helvetica, sans-serif;font-size:20px;margin:0px;padding:0px;height:100%;}
form{height:100%; margin:0px;}
.Normal, .NormalDisabled{font-family:DistrictPro Thin, Arial, Helvetica, sans-serif;font-size:20px;color:#0d15be;}
#skinall {position: relative;width:100%;min-height:100%;min-width:960px; overflow:hidden;}
.skinleft{float:left; width:385px; position:relative; z-index:9999;}
.skinlogo{padding:32px 0 32px; text-align:center;}
.skinmenu{border:1px solid #000; border-left:none; border-right:none;padding:12px 0; text-align:center;}
.skinleftpanebox{ text-align:center;}
.leftpane .Normal{ text-align:center;}


#skinfoot {position:absolute; bottom:0px; width:100%;vertical-align:baseline;}
/* =S Css link==========*/
.wzdh,.wzdh a:link,.wzdh a:active,.wzdh a:visited{color:#a0a0a0;}
.wzdh a:hover{color:#cb2a15; text-decoration:none;}
/* =S Css link end===*/
/* =S Css end */
TH,TD,DIV { vertical-align:top;}
p {margin:0px;}
.lt {text-align:left;vertical-align:top; }
.h {height:100%}
.wh{width:100%; height:100%;}

/* Event Viewer Css*/
.GeneralAdminOperation .Normal{color:#fff!important;}
.OperationSuccess .Normal{color:#fff!important;}
.OperationFailure .Normal{color:#fff!important;}
.HostAlert .Normal{color:#fff!important;}
.ItemDeleted .Normal{color:#fff!important;}
.ItemCreated .Normal{color:#fff!important;}
.Exception .Normal{color:#fff!important;}
.Head                    {font-size:11px; color:#000; font-weight:bold}
.SubHead                {font-size:11px; color:#000;}
.SubSubHead                {font-size:11px; color:#ddc893;}
.NormalBold             {color:#06f;}

.ControlPanel .CommandButton,.ControlPanel A.CommandButton:link,.ControlPanel A.CommandButton:visited,.ControlPanel A.CommandButton:active    {color:#000;TEXT-DECORATION:none}
.ControlPanel A.CommandButton:hover    {color:#b9820d;TEXT-DECORATION:underline}

A,A:link,A:visited,A:active{color:#cb2a15;text-decoration: none;}
A:hover    {color:#b9820d;TEXT-DECORATION:underline;}
/* =S Skin JDMENU ===================================================== */

.jd_menu,.jd_menu ul,.jd_menu li {margin:0;padding:0;list-style:none;}
.jd_menu {padding:0px; text-align:center;}

.jd_menu > li {
*+html .jd_menu > li {
*+html .jd_menu > li >a {

.jd_menu > li {
    background:url(images/menu_icon.jpg) no-repeat left center;
.jd_menu li a {
    font:18px/43px DistrictPro Thin, Arial, Helvetica, sans-serif;
    display: block;
    text-decoration: none;
.jd_menu > li.activetab,.jd_menu > li.jdm_hover,.jd_menu > li.jdm_active {
    background:url(images/menu_icon.jpg) no-repeat left center;
.jd_menu > li.activetab > a,.jd_menu > li.jdm_hover > a,.jd_menu > li.jdm_active > a {
    background:url(images/menu_hover_r.gif) no-repeat right bottom;
.jd_menu > li:first-child {
    background:none; }
/* =S Sub Menu -------------------------------------------------------- */
.jd_menu ul {
.jd_menu ul ul {margin:0px;}
.jd_menu ul li{text-align:left;margin:1px;}
.jd_menu ul li a {
    padding:3px 8px;
    font-family:DistrictPro Thin, Arial, Helvetica, sans-serif;
.jd_menu ul li a:hover,.jd_menu ul li.jdm_hover > a {background:#ccc;color:#0d15be;}
/* =S Menu End ------------------------------------------------------------- */
/* =S Skin Pane ------------------------------------------------------- */
.pane-box {width: 100%;}
.pane-box-sub {vertical-align: top;}
.leftshowpane,.leftpane {padding-right: 3px;vertical-align: top;}
.rightshowpane,.rightpane {padding-left: 3px;vertical-align: top;}
.toppane {padding-bottom: 3px;}
.contentpane {vertical-align: top;}
.bottompane {padding-top: 3px;}
.DNNEmptyPane{ width:0px; padding:0px; line-height:0px; height:0px; font-size:0px; margin:0px; visibility:hidden;}
/* =E Skin Pane ------------------------------------------------------- */

New Post
11/16/2013 6:10 PM
I ended up fixing my issue with my photo gallery.  Any unused space in my skin resulted in a white background.  So.. I used DNNEasyRotator to make photo full width.. This fills up the white space and scoots everything else to the left.  It looks really good now.. One question.  How do I add a background image to the 'contentpane'.  I do not want it repeated.  I just want a single background image.  Someone help?!  I thought this was an open source community forum?!  :)
New Post
11/17/2013 12:48 AM
background-repeat: no-repeat;
: url('img.png') no-repeat; background-size:
100% 100%; or if you want to maintain aspect ration to some extent background-size: 100% auto; You might also look at using the css3 alternates instead of the percentages - it does an aspect ratio scale that fits the smallest axis
-webkit-background-size: cover; 
-moz-background-size: cover; 
-o-background-size: cover; 
background-size: cover;

for older IE browsers you could also try 
 filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='.myBackground.jpg', sizingMethod='scale'); -ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='myBackground.jpg', sizingMethod='scale')"; zoom:1;

In your css -  this should work for all CSS3 compliant browsers but pre IE 9 would break.


HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...left justify content paneleft justify 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.

Content Layout

Subscribe to DNN Digest

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  

What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out