[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Nested DIV becomes unnested

Posted on 2012-08-15
4
Medium Priority
?
828 Views
Last Modified: 2013-11-19
I have a really weird issue with a master page file that I have been working on.  I have searched the web for a solution, but have not found anything.  I have been building web pages/sites for quite some time and have never seen anything like this.  In the master page file I have:
<div id="Page">
  <div id="Page">
    <div id="pageHeader">**some content**</div>
    <div id="pageContent">**aspx content place holder**</div>
    <div id="pageFooter">**some content</div>
  </div>
</div>

Open in new window

** I know that I have to div elements with an ID of "Page", but it doesn't/shouldn't affect page layout, and I don't use them for reference via VB.Net or Javascript coding.

When I view the page in design view or split view, everything looks fine.  And even on the website, any pages that use this master page work fine except for one page.  This one page, for reasons I can't even begin to imagine, separates out the pageFooter div from the parent (second) <div id="page">.

Is there anyone that can explain to me how this can happen?  Is there some server-side code or javascript that can actually move a div element out of parent element before/after the page is built?  I have tried deleting all temporary internet files, searching through javascript includes for anything referencing the pagefooter.  I just can't seem to figure out how or why this is happening.

Any thoughts or solutions would be GREATLY appreciated!
0
Comment
Question by:aspsit
  • 2
4 Comments
 
LVL 75

Assisted Solution

by:käµfm³d 👽
käµfm³d   👽 earned 750 total points
ID: 38297357
Does this one page have any extra CSS rules? If so, perhaps one of them is yielding this behavior.
0
 
LVL 60

Accepted Solution

by:
Julian Hansen earned 750 total points
ID: 38297450
I would fix the two identical id's first and then go from there.

Also there are many scenarios where this could happen

#page {
 position: absolute;
top: -300px;
}

Will have an effect - the point being if there is something specific on the page that this is happening on that could cause it - it would be something like the above.

To answer the question we would need to see the page - not enough info here to debug
0
 

Author Closing Comment

by:aspsit
ID: 38297685
I want to thank you for your advice.  I did get the issue fixed.  As it turns out, the page in question had one to many </div> statements (that I shamefully missed).  As soon as I removed that it fixed my issue.
0
 
LVL 60

Expert Comment

by:Julian Hansen
ID: 38297818
You are welcome - I do that all the time - no matter how hard I look sometimes a </div> crawls in where it shouldn't be or goes AWOL
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
Suggested Courses
Course of the Month19 days, 13 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question