I have a page called admin.php. It has 2 buttons on the left, one view records and another creates a record. When the buttons are clicked it loads up the content into a div on the right. It works OK with the view records button, but when I click the create record it loads up behind the view records content.
A bit hard to describe so I have created two PhpFiddle pages to demonstrate.
Here is the admin page: http://phpfiddle.org/main/code/9vgr-dn34
Here is the create record page: http://phpfiddle.org/main/code/bvan-3wph