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, ...DoctypeDoctype
Previous
 
Next
New Post
7/6/2011 11:46 AM
 
Hello All,

I'm skinning my first DNN site - exciting! Anyway, I'm using DotNetNuke Version: 05.04.02. My current doctype is this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

Is this the doctype I should be using? I looked for other threads, but a lot has changed since 2007, most posts are too old.
What doctype is recommend?

The reason I thought I might need to change it is because my site will center in Firefox, but not in IE. In IE it aligns left. I can't figure out how to fix this. My CSS looks like this for main wrapper:

.skinwrapper{
    border-top:16px solid #eaece2;
    border-right:0px;
    border-left:0px;
    border-bottom:0px;
    padding:0px;
    min-width: 840px;
    max-width: 1076px;
    margin: 0px auto;
    color:#3c3d3a;
    }

.skinwrapper {
    width:expression(document.body.clientWidth < 840? "840px" : document.body.clientWidth > 1076? "1076px" : "auto" );
    text-align:center;
}

Please shoot me some advice.
Thanks in advance!
 
New Post
7/8/2011 7:04 AM
 
you better use xhtml transitional. you need to add a  file to your skin folder called skinname.doctype.xml in which you specify the doctype.
look at the _default minimalExtropy folder for an example.

peter

Peter Schotman
Cestus Websites voor DotNetNuke oplossingen in Nederland
Contact us for your custom design and skinning work.
 
New Post
7/11/2011 2:18 PM
 
Thanks Peter! That did help, but I have run into another problem after changing the doctype. The entire website stays within the width except for the content area stretches the website far to the right. I  can't figure out what is causing this to happen. I put widths on both the content and right pane.

Here's some of the css:

/* CSS Document - DNN Nuke */

/* Skin CSS */

body{
    background:url(images/bg.png);
    background-repeat: repeat-x;
    background-position:top;
    height:auto;
    background-color:#eeede7;
    margin: 0px auto;
    }  


.skinwrapper{
    border-top:16px solid #eaece2;
    border-right:0px;
    border-left:0px;
    border-bottom:0px;
    padding:0px;
    min-width: 840px;
    max-width: 1076px;
    margin: 0px auto;
    color:#3c3d3a;
    }
    
/*************************/
/* IE quirks */
/*************************/


.skinwrapper {
    width:expression(document.body.clientWidth < 840? "840px" : document.body.clientWidth > 1076? "1076px" : "auto" );
    text-align:left;
    margin: 0px auto;
}
    
/* end */

.skinuser{
    background:#FFF;
    color: #3a5170;
    font-weight:bold;
    font-size:11px;
    text-decoration : none;
    font-family:Verdana, Arial, Helvetica, sans-serif;       
    }


.skinmenu{
    background:#eaece2;
    width:100%;
    height:52px;
    font-size:14px;
    font-family:Verdana, Arial, Helvetica, sans-serif;
    font-weight:bold;
    color:#afb1a7;
    margin:0px;
    vertical-align:middle;
    }   


.skincontentstable{
    border:1px #ccd1d1 solid;
    background:#FFFFFF;
    margin:5px 0 8px 0;
    padding:20px 0 0 16px;
    min-width: 840px;
    max-width: 1076px;
    }


.contentpane{
    width: 713px;
    background:#FFF;
    vertical-align:top;
    padding:0px;
    margin:0px;
    text-align:left;
    }  


.rightpane{
    width: 314px;
    background:#FFF;
    vertical-align:top;
    padding:0px;
    margin:0px;
    text-align:left;
    }

skin.ascx file:
<div class="skinwrapper" align="center">
          <table border="0" cellspacing="0" cellpadding="0" width="100%" class="headertable" align="center">
              <tr>
                <td align="left">
                    <dnn:LOGO runat="server" id="dnnLOGO" /></td>
                <td class="skinuser" align="right">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" align="right">
                          <tr>
                            <td width="100%" align="right"><dnn:SEARCH runat="server" id="dnnSEARCH" Submit="<img src=&quot;images/search.png&quot; align=&quot;absMiddle&quot; border=&quot;0&quot;>" />&nbsp;<dnn:USER runat="server" id="dnnUSER" CssClass="skinuser" /> | <dnn:LOGIN runat="server" id="dnnLOGIN" CssClass="skinuser" /></td>
                          </tr>
                          <tr>
                <td align="right"><table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="right"><dnn:CURRENTDATE runat="server" id="dnnCURRENTDATE" cssclass="Date" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
    <td><img src="<%= SkinPath %>images/twitter.png" width="24" height="26" />&nbsp;<img src="<%= SkinPath %>images/facebook.png" width="25" height="26" />&nbsp;<img src="<%= SkinPath %>images/utube.png" width="27" height="27" /></td>
  </tr>
</table>
</td>
                  </tr>
                    </table>
                    </td>
              </tr>
            </table>
          <div class="skinmenu" width="100%">&nbsp;<dnn:SOLPARTMENU runat="server" id="dnnSOLPARTMENU" menueffectsmouseoverdisplay="none" menueffectsmenutransition="AlphaFadeBottomRight" cleardefaults="true" mouseouthidedelay="300" usearrows="false" userootbreadcrumbarrow="false" usesubmenubreadcrumbarrow="true" rootmenuitemcssclass="RootMenuItem" rootmenuitembreadcrumbcssclass="RootMenuItemHover" rootmenuitemselectedcssclass="RootMenuItemSel" Rootmenuitemactivecssclass="MainMenu_TabMenuItemSelHover" menuitemselcssclass="MainMenu_MenuItemSel" submenucssclass="Submenu" submenuitemselectedcssclass="Submenuitemselected" submenuitembreadcrumbcssclass="Submenuitembreadcrumb" />
            </div>                   
            <table border="0" cellspacing="0" cellpadding="0" class="skincontentstable">
                  <tr>
                    <td id="ContentPane" runat="server" nowrap class="contentpane" visible="false" valign="top" width="713"></td>
                    <td id="RightPane" runat="server" nowrap class="rightpane" visible="false" valign="top"></td>
                  </tr>
            </table>
            <table border="0" cellspacing="0" cellpadding="0" class="footertable" id="White">
                  <tr>
                    <td valign="top" id="Bottompane1" runat="server" nowrap class="footerlinks" visible="false" width="157"></td>
                    <td valign="top" id="BottomPane2" runat="server" nowrap class="footerlinks" visible="false" width="147"></td>
                    <td valign="top" id="BottomPane3" runat="server" nowrap class="footerlinks" visible="false" width="135"></td>
                    <td valign="top" id="BottomPane4" runat="server" nowrap class="footerlinks" visible="false" width="166"></td>
                    <td valign="top" id="BottomPane5" runat="server" nowrap class="footerlinks" visible="false" width="150"></td>
                    <td valign="top" id="BottomPane6" runat="server" nowrap class="footerlinks" visible="false" width="100%"></td>
                  </tr>
            </table>
            <div class="skinfooter" width="100%"><dnn:COPYRIGHT runat="server" id="dnnCOPYRIGHT" CssClass="skinfooter" /></div>
        </div>

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...DoctypeDoctype


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