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, ...Problem splitting a divProblem splitting a div
Previous
 
Next
New Post
1/24/2012 3:40 PM
 

I am trying to split a div and define the sizes of the two sections within the div., but am experiencing some problems with this process. Basically, I have a div defined as:  <div class="contentrow1" runat="server" ID="row1" visible="true">  and i would like to split the div (item1 : width: 52%  and   item2: width: 48%) inside the "row1" Div and place modules inside the item1 and item2 Divs..

Below is the base ascx file that shows the base structure, with the section I am trying to modify highlighted with bold text:

<!--Doctype Declaration and CSS Links--------------------------------------------------- -->
<%@ Control Language="vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Skins.Skin" %>
<%@ Register TagPrefix="dnn" TagName="LANGUAGE" Src="~/Admin/Skins/Language.ascx" %>
<%@ Register TagPrefix="dnn" TagName="LOGO" Src="~/Admin/Skins/Logo.ascx" %>
<%@ Register TagPrefix="dnn" TagName="SEARCH" Src="~/Admin/Skins/Search.ascx" %>
<%@ Register TagPrefix="dnn" TagName="NAV" Src="~/Admin/Skins/Nav.ascx" %>
<%@ Register TagPrefix="dnn" TagName="TEXT" Src="~/Admin/Skins/Text.ascx" %>
<%@ Register TagPrefix="dnn" TagName="BREADCRUMB" Src="~/Admin/Skins/BreadCrumb.ascx" %>
<%@ Register TagPrefix="dnn" TagName="USER" Src="~/Admin/Skins/User.ascx" %>
<%@ Register TagPrefix="dnn" TagName="LOGIN" Src="~/Admin/Skins/Login.ascx" %>
<%@ Register TagPrefix="dnn" TagName="PRIVACY" Src="~/Admin/Skins/Privacy.ascx" %>
<%@ Register TagPrefix="dnn" TagName="TERMS" Src="~/Admin/Skins/Terms.ascx" %>
<%@ Register TagPrefix="dnn" TagName="COPYRIGHT" Src="~/Admin/Skins/Copyright.ascx" %>
<%@ Register TagPrefix="dnn" TagName="STYLES" Src="~/Admin/Skins/Styles.ascx" %>
<link href="skin.css" rel="stylesheet" type="text/css" />
<!--
    Created by Kim Peterson v1.0
    -->
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="script.js"></script>
<body>
    <div id="main">
        <div class="box sheet">
            <div class="box-body sheet-body">
                <div class="header">
                    <!-- header  -->
                    <div class="header" runat="server" id="header" visible="true">
                    </div>
                </div>
                <div class="bar nav">
                    <div class="nav-outer">
                        <ul class="hmenu">
                            <li><a href="./Home.aspx" class="active">Home</a> </li>
                            <li><a href="./AboutUs.aspx">About Us</a> </li>
                            <li><a href="./Products.aspx">Products</a> </li>
                            <li><a href="./Warranty.aspx">Warranty</a> </li>
                            <li><a href="./Suppliers.aspx">Suppliers</a> </li>
                            <li><a href="./ContactUs.aspx">Contact Us</a> </li>
                        </ul>
                    </div>
                </div>
                <div class="contentrow1" runat="server" id="row1" visible="true">
                    <div class="item1" runat="server" id="item_1" visible="true">
                    </div>
                    <div class="item2" runat="server" id="item_2" visible="true">
                    </div>
                </div>

                <div class="contentrow2" runat="server" id="row2" visible="true">
                </div>
                <div class="contentrow3" runat="server" id="row3" visible="true">
                </div>
                <div class="footer">
                    <div class="footer-body">
                        <div class="footer-center">
                            <div class="footer-wrapper">
                                <div class="footer-text">
                                    <p>
                                        Copyright © 2012, Johnson Lifters. All Rights Reserved.</p>
                                    <p class="page-footer">
                                        <a href="http://www.johnsonlifters.com" target="_blank"></a>created by Frustrated
                                        Incorporated.</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
</body>

Under layout I see the Row1, Row2 and Row3 Div's, I do not see the internal Div's: item_1 or item_2, also under the module menu, I do not see the internal Div's listed to be able to place a module inside them. I am able to place a module inside the Row1 Div. but it extends thru the entire Div.

Can someone please tell me what I am doing wrong here? Any suggestions are greatly appreciated.

 
New Post
1/24/2012 4:13 PM
 
I don't think that you can have a content pane inside of a content pane. If you remove the runat="server" from row1.



Joe Craig
Patapsco Research Group, Ellicott City, MD
DotNetNuke Development and Services (http://patapscorg.com)
 
New Post
1/24/2012 5:57 PM
 
That did it. Thank you Sir.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Problem splitting a divProblem splitting a div


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