Note that there are some explanatory texts on larger screens.

plurals
  1. POStrange div nesting issue
    primarykey
    data
    text
    <p>I am having a strange issue with the website I am working on. For some reason, divs are nesting inside of other divs. This messes up my formatting and it driving me nuts. The problem page is here: <a href="http://www.thecadencegrp.com/our-books/page/2" rel="nofollow">http://www.thecadencegrp.com/our-books/page/2</a></p> <p>If you scroll down to the bottom of the page, you can see the footer is messed up. I cannot seem to fix it!</p> <p>Here is the code:</p> <pre><code> &lt;?php /* Template Name: Template Page */ ?&gt; &lt;?php get_header(); ?&gt; &lt;style&gt; .middler_title{ width:1000px; margin:20px auto 0 auto; } #titles-wrapper { margin-left: 0; overflow: hidden; margin-left: 80px; } #footer { width: 960px; margin: 0 auto; display: block; clear: both;} .middler_title_row { float:left; width:780px; margin-top:20px; margin-left: 0; margin-bottom: 40px; margin-top: 40px; } .middler_title_row img{ float:left; display:inline; margin-bottom:20px; margin-right:20px; padding:0; margin-left: 0; } .middler_title_row h1{ font-size:30px; } .middler_title_row h2{ font-size:16px; margin-top:-38px; } .middler_title_row h3{ font-size:20px; margin-top:0px; } .middler_title_row h4{ font-size:20px; font-weight:normal; } .middler_title_row a{ text-decoration:none; color:#005ECF; } h3.author-name { padding-top: 0px; padding-bottom: 20px; } #book-navigation { width: 240px; margin: 20px auto; } #book-nav-right { float: right; width: 120px; margin-top:20px; margin-bottom:20px; padding:0; font-size: 20px; text-align: left; } #book-nav-left { float: left; width: 120px; margin-top:20px; margin-bottom:20px; padding:0; font-size: 20px; } &lt;/style&gt; &lt;?php global $more; $more=0; ?&gt; &lt;div id="main-wrap"&gt; &lt;!-- ######################################## --&gt; &lt;div id="titles-wrapper"&gt; &lt;!-- ######################################## --&gt; &lt;div class="middler_title"&gt; &lt;?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array( 'cat' =&gt; 1, 'paged' =&gt; $paged ); query_posts($args); query_posts('post_type=books&amp;order=DESC&amp;posts_per_page=10&amp;paged='.$paged); while (have_posts()) : the_post(); ?&gt; &lt;div class="middler_title_row"&gt; &lt;?php $bookcover = get_the_post_thumbnail($page-&gt;ID, 'bookcover'); ?&gt; &lt;?php echo $bookcover; ?&gt; &lt;h1&gt;&lt;?php the_title(); ?&gt;&lt;/h1&gt; &lt;?php $meta_values = get_post_meta($post-&gt;ID, 'subtitle', true); ?&gt; &lt;h4&gt;&lt;?php echo $meta_values; ?&gt;&lt;/h4&gt; &lt;?php $meta_values2 = get_post_meta($post-&gt;ID, 'author', true); ?&gt; &lt;h3 class="author-name"&gt;&lt;?php echo $meta_values2 ; ?&gt;&lt;/h3&gt; &lt;?php $meta_values11 = get_post_meta($post-&gt;ID, 'what_cadence_has_done_to_help_this_book', true); ?&gt; &lt;?php $meta_values3 = get_post_meta($post-&gt;ID, 'overview', true); ?&gt; &lt;?php $meta_values4 = get_post_meta($post-&gt;ID, 'read-more', true); if(!$meta_values4){ $strtitle = get_the_title(); $title=explode(' ',$strtitle); $title=implode('-',$title); if(count($title)&lt;1){ $title=strtolower($strtitle); }else{ $title=strtolower($title); } $meta_values4 = get_bloginfo('wpurl').'/Books/'.$title; } ?&gt; &lt;p&gt;&lt;?php echo $meta_values11 ?&gt;&lt;/p&gt; &lt;p&gt;&lt;?php echo substr($meta_values3,0,340); ?&gt;&lt;a href="&lt;?php echo $meta_values4;?&gt;"&gt; ...READ MORE&lt;/a&gt;&lt;/p&gt; &lt;/div&gt; &lt;?php endwhile; ?&gt; &lt;div id="book-navigation"&gt; &lt;div id="book-nav-right"&gt;&lt;?php next_posts_link('NEXT &amp;#62;&amp;#62;', $the_query-&gt;max_num_pages) ?&gt;&lt;/div&gt; &lt;div id="book-nav-left"&gt;&lt;?php previous_posts_link('&amp;#60;&amp;#60; PREVIOUS') ?&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;!-- ######################################## --&gt; &lt;/div&gt; &lt;!-- ######################################## --&gt; &lt;div id="footer"&gt; &lt;?php get_footer(); ?&gt; &lt;/div&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload