Site structure
Version 6.x > Site structure > ie duplicating div from masterpage View modes: 
User avatar
Member
Member
david.haigh-mercatosolutions - 10/3/2012 4:49:45 AM
   
ie duplicating div from masterpage
I have my layout defined in my masterpage as follows:
<div class="pageTopRepeat">
<div class="pageTop">
<div class="page">
<cc1:CMSWebPartZone ID="zoneTop" runat="server" />
<cc1:CMSWebPartZone ID="zoneMenu" runat="server" />
<cc1:CMSWebPartZone ID="zoneMain" runat="server" />
<div class="footer">
<div class="footerTopSection">
<div class="footerLeft">
<cc1:CMSWebPartZone ID="zoneFooterLeft" runat="server" />
</div>
<div class="footerRight">
<cc1:CMSWebPartZone ID="zoneFooterRight" runat="server" />
</div>
</div>
</div>
<div class="clear"></div>
<div class="footerBase">
<div class="footerBaseLeft">
<cc1:CMSWebPartZone ID="zoneSubLeftFooter" runat="server" />
</div>
<div class="footerBaseRight">
<cc1:CMSWebPartZone ID="zoneSubRightFooter" runat="server" />
</div>
</div>
</div>
</div>
<div class="clear"></div>


When I view the page in ie, the pageTopRepeat div is being rendered twice! Once inside the form tag with all content within it, and once just outside the form tag as an empty div.

Why would ie be rendering this twice? I don't believe that I have any extra form tags within my page.

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 10/4/2012 5:35:23 AM
   
RE:ie duplicating div from masterpage
Hello,


do you place the code on the Mater page tab, or is it the template layout (on the Design tab)?

Do you view the master page directly or a child document which uses this master page?

Do you use Kentico CMS 6, right?


Best regards,
Helena Grulichova

User avatar
Member
Member
david.haigh-mercatosolutions - 10/4/2012 5:59:05 AM
   
RE:ie duplicating div from masterpage
My apologies.

The error lay with the markup. There is a missing closing div in the layout code (look closely). It's hard to spot at a glance. I have fixed the markup now and the layout renders fine in ie.

Thanks for your time.