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, ...Container doesnContainer doesn't center in IE
Previous
 
Next
New Post
1/26/2009 4:36 PM
 

I cannot figure out how to get the page to center in IE.  It displays in FF correctly.   Here is a link to the problem, check it out in FF then IE. 

I'm not sure what I need to add to the ie6skin.css file to get the page to display correctly.

Thanks for your help and if this is not the correct forum to post in let me know. 

http://www.uzanity.com/Home/tabid/36/Default.aspx

 

IE6skin.css

/*--------- IE overrides with .gif backgrounds style ----------*/
.logo_top_left{padding:0px; margin:0px; background:url(images/ie/logo_

top_left.gif) no-repeat top left; height:23px;}
.logo_top_right{padding:0px; margin:0px; background:url(images/ie/logo_top_right.gif) no-repeat top right;}
.logo_left{padding:0px; background:url(images/ie/logo_left.gif) repeat-y top left;}
.logo_right{padding:0px; background:url(images/ie/logo_right.gif) repeat-y top right;}

.menu_left{padding:0px; margin:0px; background:url(images/ie/menu_left.gif) no-repeat top left;}
.menu_right{margin:0px; background:url(images/ie/menu_right.gif) no-repeat top right; }

.bread_left{padding:0px; margin:0px; background:url(images/ie/bread_left.gif) no-repeat top left;}
.bread_right{padding:0px;  background:url(images/ie/bread_right.gif) no-repeat top right;}

.left_bg{padding:0px; margin:0px; background:url(images/ie/left_bg.gif) repeat-y top left;}
.right_bg{padding:0px; margin:0px; background:url(images/ie/right_bg.gif) repeat-y top right;}

.bot_left{padding:0px; margin:0px; background:url(images/ie/bot_left.gif) no-repeat top left;}
.bot_right{padding:0px; margin:0px; background:url(images/ie/bot_right.gif) no-repeat top right; padding:0px 39px 0px 27px;}
.bot_bg{padding:0px; margin:0px; background:url(images/ie/bot_bg.gif) repeat-x top left; height:41px;}



 
.TopPane( padding:0px 0px 0px 0px; margin:0px 0px 0px 0px; width:750px;)
.BottomPane{ padding:0px; margin:0px;}
.RightPane{padding:0px 0px 0px 0px; margin:0px 0px 0px 0px;}

.test{font-size:26;}


skin.css file.  

@import url("css/menu.css");

/* CSS Document */
body {background:#FFF url(images/body_bg.png) repeat-x top left; height:100%; margin:0px; padding:0px; }

/*-------- Default Style --------*/
th,td,div{color:#000; font-family:Verdana, Arial, Helvetica, sans-serif; font-weight:normal; }
a,a:link,a:visited,a:active{color:#4F839F; text-decoration:none; font-family:Verdana, Arial, Helvetica, sans-serif; font-weight:normal; }
a:hover{color:#C00; text-decoration:none; }

/*-------- design style --------*/
.template_style{width:960px; margin:auto;}

.top_space{height:34px;}
.lang_pad{padding:7px 35px 0px 0px;}

.logo_top_left{padding:0px; margin:0px; background:url(images/logo_top_left.png) no-repeat top left; height:23px;}
.logo_top_right{padding:0px; margin:0px; background:url(images/logo_top_right.png) no-repeat top right;}
.logo_top_bg{padding:0px; margin:0 39px 0 27px; background:#FFF url(images/logo_top_bg.png) repeat-x top;height:23px;}
.logo_left{padding:0px; background:url(images/logo_left.png) repeat-y top left;}
.logo_right{padding:0px; background:url(images/logo_right.png) repeat-y top right;}
.logo_pad{background:#FFF; margin: 0 19px 0 7px; padding:0 ;height:150px;}

.menu_bg{padding:0 0 0 6px;  margin: 0 19px 0 7px; height:40px; background:url(images/menu_bg.png) repeat-x top left;}
.menu_left{padding:0px; margin:0px; background:url(images/menu_left.png) no-repeat top left;}
.menu_right{margin:0px; background:url(images/menu_right.png) no-repeat top right; }

.search_style{float:right; padding:8px 0px 0px 0px;}
.search_bg{padding-right:2px;}
.search_bg Input{color: #43494D;}

.menu_style{float:left;}

.bread_bg{padding:0px; margin: 0 19px 0 7px; background:url(images/bread_bg_gray.png) repeat-x top left; height:34px;}
.bread_left{padding:0px; margin:0px; background:url(images/bread_left.png) no-repeat top left;}
.bread_right{padding:0px;  background:url(images/bread_right.png) no-repeat top right;}

#login_style{ float:right; padding:8px 17px 0px 10px; }
#bread_style{ float:left; padding:8px 0px 0px 17px; color:#000000; font-size:13px; }

.center_bg{padding:0px; margin:0px;}
.left_bg{padding:0px; margin:0px; background:url(images/left_bg.png) repeat-y top left;}
.right_bg{padding:0px; margin:0px; background:url(images/right_bg.png) repeat-y top right;}
.content_pad{padding:10px 22px 10px 22px; margin: 0 19px 0 7px; background:#FFF url(images/center_bg.png) repeat-x bottom left;}

.bot_left{padding:0px; margin:0px; background:url(images/bot_left.png) no-repeat top left;}
.bot_right{padding:0px; margin:0px; background:url(images/bot_right.png) no-repeat top right; padding:0px 39px 0px 27px;}
.bot_bg{padding:0px; margin:0px; background:url(images/bot_bg.png) repeat-x top left; height:41px;}

.bot_pad{margin-bottom:20px;padding:0 30px 0 20px;}
#terms_style{float:left;}
#copy_style{float:right;}

.clear_float{clear:both;}

/*--------- pane style ----------*/
.ContentPane { padding:0px 10px; margin:0px; height: 200px;}
.BottomPane{ padding:0px; margin:0px;}
.TopPane( padding:0px 0px 0px 0px; margin:0px 0px 0px 0px;)
.ContentPane2 { padding:0px 10px; margin:0px; height px;}
.ContentPane3 { padding:0px 10px; margin:0px; height  px;}
.MyPane{ padding:0px 0px 0px 0px; margin:0px 0px 0px 0px;}
.LeftPane{ padding:0px  margin:0px; width:8em;}
.RightPane{ padding:0px  margin:0px; width:10em;}

/*------------ Breadcrumb Style --------------*/
.Breadcrumb,a.Breadcrumb:link,a.Breadcrumb:active,a.Breadcrumb:visited{ color:#4F839F; font-size:13px; }
a.Breadcrumb:hover{color:#C00;}

/*-------------- Link Style --------------*/
.links {text-align:center;}
.links,a.links:link,a.links:active,a.links:visited{ font-weight:bold; color:#4F839F; font-size:11px; text-transform:uppercase; }
a.links:hover{color:#C00;}

/*-------------- User Style --------------*/
.user,a.user:link,a.user:active,a.user:visited { color:#4F839F; font-size:12px;}
a.user:hover{color:#C00;}

/*-------------- Footer Style --------------*/
.footer,a.footer:link,a.footer:active,a.footer:visited { color:#4F839F; font-size:12px;}
a.footer:hover{color:#C00;}

/*-------------- Search SkinObject Styles --------------*/
div.SearchContainer{position:relative; white-space: nowrap;}
div.SearchBorder{width: 200px; height: 20px; border: solid 1px #e0e0e0; position:absolute; right:35px; background-color: White; white-space: nowrap; margin-top: 2px;}
div.SearchContainer a{padding: 0px 5px; position:relative; display: block;}
div.SearchIcon{float: left; width: 31px; height: 20px; cursor: pointer; z-index: 11; background: no-repeat 2px 2px; text-align:right;}
div.SearchIcon img{margin-top: 3px;}

input.SearchTextBox{float: left; z-index: 10; border: 0px; width:150px; height:18px; margin-left:3px;}

#SearchChoices{clear: both; display: none; border: solid 1px #C3D4DF; z-index: 2000; cursor: pointer; margin: 0; padding: 0; text-align:left; font-size:12px; background-color: #F3F7FA; position:absolute; top: 22px; left: 0px;}
#SearchChoices li{cursor: pointer; margin: 0; padding: 2px 2px 0 2px; padding-left: 25px; height: 18px; text-align:left; background-color: #F3F7FA; background-repeat: no-repeat; background-position: 2px center; list-style: none; list-style-image: none; border: none; display:block;}
#SearchChoices li.searchHilite{background-color: #CE0D0D;    color:#ffffff; border: none;}
#SearchChoices li.searchDefault{background-color: #F8FAFF; border: none;}



My Custom Container File.  


<%@ 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="BANNER" Src="~/Admin/Skins/Banner.ascx" %>
<%@ Register TagPrefix="snn" TagName="BANNER" Src="~/Admin/Skins/Banner.ascx" %>
<%@ Register TagPrefix="dnn" TagName="LOGO" Src="~/Admin/Skins/Logo.ascx" %>
<%@ Register TagPrefix="dnn" TagName="NAV" Src="~/Admin/Skins/Nav.ascx" %>
<%@ Register TagPrefix="dnn" TagName="SEARCH" Src="~/Admin/Skins/Search.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="LINKS" Src="~/Admin/Skins/Links.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" %>
<%@ Register TagPrefix="dnn" TagName="CURRENTDATE" Src="~/Admin/Skins/Styles.ascx" %>

 
<div>
    <div class="template_style">
        <div id="ControlPanel" runat="server" />
        <div class="top_space">
            <div class="lang_pad">
                <dnn:LANGUAGE runat="server" ID="dnnLANGUAGE" ShowMenu="False" ShowLinks="True" />
            </div>
        </div>
        <div class="logo_top">
            <div class="logo_top_left">
                <div class="logo_top_right">
                    <div class="logo_top_bg">
                    </div>
                </div>
            </div>
            <div class="logo_left">
                <div class="logo_right">
                    <div class="logo_pad">
                        <dnn:LOGO runat="server" ID="dnnLOGO" />
                    </div>
                </div>
            </div>
        </div>
        <div class="menu_left">
            <div class="menu_right">
                <div class="menu_bg">
                    <div class="menu_style">
                        <dnn:NAV runat="server" ID="dnnNAV" ProviderName="DNNMenuNavigationProvider" IndicateChildren="false"
                            ControlOrientation="Horizontal" CSSNodeRoot="main_dnnmenu_rootitem" CSSNodeHoverRoot="main_dnnmenu_rootitem_hover"
                            CSSNodeSelectedRoot="main_dnnmenu_rootitem_selected" CSSBreadCrumbRoot="main_dnnmenu_rootitem_selected"
                            CSSContainerSub="main_dnnmenu_submenu" CSSNodeHoverSub="main_dnnmenu_itemhover"
                            CSSNodeSelectedSub="main_dnnmenu_itemselected" CSSContainerRoot="main_dnnmenu_container"
                            CSSControl="main_dnnmenu_bar" CSSNode="main_dnnmenu_bar" CSSBreak="main_dnnmenu_break" />
                    </div>
                    <div class="search_style">
                        <div class="search_bg">
                            <dnn:SEARCH runat="server" ID="dnnSEARCH" CssClass="ServerSkinWidget" UseDropDownList="true"
                                Submit="<img src=&quot;images/search.gif&quot; border=&quot;0&quot; alt=&quot;Search&quot;>" />
                        </div>
                    </div>
                    <div class="clear_float">
                    </div>
                </div>
            </div>
        </div>
        <div class="bread_left">
            <div class="bread_right">
                <div class="bread_bg">
                    <div id="bread_style">
                        <dnn:TEXT runat="server" ID="dnnTEXT" CssClass="breadcrumb_text" Text="You are here" ResourceKey="Breadcrumb.Text"/>
                        :&nbsp;<span><dnn:BREADCRUMB runat="server" ID="dnnBREADCRUMB" CssClass="Breadcrumb"
                            RootLevel="0" Separator="&nbsp;>&nbsp;" />
                        </span>
                    </div>
                    <div id="login_style" class="user">
                        <dnn:USER runat="server" ID="dnnUSER" CssClass="user" />
                        &nbsp;&nbsp;|&nbsp;&nbsp;<dnn:LOGIN runat="server" ID="dnnLOGIN" CssClass="user" />
                    </div>
                    <div class="clear_float">
                    </div>
                </div>
            </div>
        </div>
        <div class="center_bg">
            <div class="left_bg">
                <div class="right_bg">
                    <div class="content_pad">
                        <div class="content_width">
                            <table width="" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td valign="top" id="TopPane" class="TopPane" runat="server" colspan="4" visible="true"></td>
                                </tr>
               
                    <tr>
                                    <td valign="top" id="MyPane" class="MyPane" runat="server" colspan="4" visible="false"> </td>
                                </tr>
                               
                    <tr>
                                    <td valign="top" id="LeftPane" class="LeftPane" runat="server" visible="false" rowspan=3>
                                    </td>

                                    <td valign="top" id="ContentPane" class="ContentPane" runat="server" visible="false">
                                     <CENTER><dnn:BANNER runat="server" id="dnnBANNER" /></CENTER><br />
                    </td>
               
                                    <td valign="top" id="RightPane" class="RightPane" runat="server" visible="false" rowspan=3>
                                    </td>
                                </tr>
                               
                <tr>
                   <td valign="top" id="ContentPane2" class="ContentPane2" runat="server" visible="false">
                  
                    </td>
                                 
                              </tr>

                <tr>
                <td valign="top" id="ContentPane3" class="ContentPane3" runat="server" visible="false" height="360">
                <br /><CENTER> <dnn:BANNER runat="server" id="snnBANNER" /></CENTER>
               
                </td>

                                </tr>

                    <TR>
                                  <td valign="top" id="BottomPane" class="BottomPane" runat="server" colspan="4" visible="false">
               
                                  </td>
                                </tr>
                  </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="bot_left">
            <div class="bot_right">
                <div class="bot_bg links">
                    <dnn:LINKS runat="server" ID="dnnLINKS" CssClass="links" Level="Root" Separator="&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;" />
                </div>
            </div>
        </div>
        <div class="bot_pad">
            <div id="terms_style" class="footer">
                <dnn:PRIVACY runat="server" ID="dnnPRIVACY" CssClass="footer" />
                &nbsp;&nbsp;|&nbsp;&nbsp;<dnn:TERMS runat="server" ID="dnnTERMS" CssClass="footer" />
            </div>
            <div id="copy_style" class="footer">
                <dnn:COPYRIGHT runat="server" ID="dnnCOPYRIGHT" CssClass="footer" />
            </div>
            <div class="clear_float">
            </div>
        </div>
    </div>
</div>
<dnn:STYLES runat="server" ID="StylesIE6" Name="IE6Minus" StyleSheet="ie6 skin.css" Condition="gt IE 5" UseSkinPath="true" />
 
New Post
1/26/2009 5:56 PM
 

you should have the doctype XHTML or "margin:0 auto" will not work in IE

 
New Post
1/26/2009 11:33 PM
 

Can you give me a more detailed explanation? 

 
New Post
1/27/2009 12:38 AM
 

OK I did some research and understand what your saying.  What file should I put the doc in the default page or the actual container I'm using on the page?  

 

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Container doesnContainer doesn't center in IE


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