I have a new theme i plan on offering for free to get some backlinks, but having a problem with it.
I try to end a div tag but it doesn't it just continues, so this seems to fuck up the footer and push it to the right.
header.php
<body>
<div align="center">
<div id="main">
<div id="inmain">
<h1>
<a href="<?php echo get_option('siteurl'); ?>
"><?php bloginfo('name'); ?>
</a>
</h1>
</div>
</div>
<div id="bar">
<?php //Archives (drop down menu) ?>
<div style="float:left;padding-left:20px;padding-top:1px;">
<select name="archive-dropdown" onChange='document.location.href=this.options[this.selectedIndex].value;'>
<option value="">
<?php echo attribute_escape(__('Archives')); ?>
</option>
<?php wp_get_archives('type=monthly&format=option'); ?>
</select>
</div>
<ul id="links">
<li>
<a href="<?php bloginfo('url'); ?>
">Home</a>
<?php wp_list_pages('title_li='); ?>
</li>
</ul>
</div>
<div id="main">
<div id="inmain">
index
<?php get_header(); ?>
<div style="float:right; width:240px;">
<?php include (TEMPLATEPATH . '/leftsidebar.php'); get_sidebar(); ?>
</div>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div id="post">
<span class="info">
<?php the_date("l, F j, Y"); ?>
<?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
</span>
<h2>
<a href="<?php the_permalink() ?>
" rel="bookmark"><?php the_title(); ?>
</a>
</h2>
<span class="postcontent">
<?php the_content(); ?>
</span>
<span class="info">By <?php the_author(); ?>
. Categorys <?php the_category(',') ?>
<br /><?php edit_post_link(__('Edit This')); ?>
</span>
<?php endwhile; ?>
<?php else : ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?>
</p>
<?php endif; ?>
</div>
<?php // This will search for a plugin' called PageBar, if it is not enabled or is not installed it will shwo the refular next page>> ?>
<center>
<?php if(function_exists('wp_pagebar')) { wp_pagebar(array('before'=>' ', 'after'=>' ', 'tooltip'=>true, 'tooltip_text'=>'Page')); }else{ echo"<br /><br />"; posts_nav_link(' — ', __('« Previous Page'), __('Next Page »')); } ?>
</center>
<?php get_footer();?>
footer.php
</div>
</div>
</div>
<div id="footer">
<div align="center">
<div style="width:860px;height:200px;float:center;border-top:1px solid #584534;overflow:auto;">
<?php //Search for 2 recent comment plugin's if the function from fuzzy recent comments does not work then try Simple Recent Comments, if neither exist do not show any. ?>
<?php if(function_exists('src_simple_recent_comments')) { echo"<div align=\"left\"><div style=\"width:280px;float:left;display:block;clear:none;text-align:left;\"><h3>Recent Comments</h3>"; src_simple_recent_comments(6,20); echo"</div></div>"; }else if(function_exists('the_recent_comments')) { echo"<div align=\"left\"><div style=\"width:280px;float:left;display:block;clear:none;text-align:left;\"><h3>Recent Comments</h3>"; the_recent_comments(); echo"</div></div>";} ?>
<?php if(function_exists('mdv_recent_posts')) { echo"<div align=\"center\"><div style=\"width:280px;float:left;display:block;clear:none;text-align:left;\"><h3>Recent Posts</h3>"; mdv_recent_posts(5); echo"</div></div>"; }else if(function_exists('get_recent_post')) { echo"<div align=\"center\"><div style=\"width:280px;float:none;display:block;clear:none;text-align:left;\"><h3>Recent Comments</h3>"; the_recent_comments(); echo"</div></div>";} ?>
<?php if(function_exists('related_posts')) { echo"<div align=\"right\"><div style=\"width:280px;float:left;display:block;clear:none;text-align:left;\"><h3>Related Posts</h3>"; related_posts(4,0); echo"</div></div>"; }else if(function_exists('get_recent_post')) { echo"<div align=\"right\"><div style=\"width:280px;float:none;display:block;clear:none;text-align:left;\"><h3>Recent Comments</h3>"; the_recent_comments(); echo"</div></div>";} ?>
</div>
</div>
<span style="font-size:10px;"></span>
</div>
</div>
</body>
This is really bugging me I've tried to think of different reasons why this is happening, I can't see that its the code it seems to be the content on tt its messed up but on my own server its fine.
the picture attached shouldn't be split, and the layer behind it shouldn't even be their!