Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Top border issue Re: Top border issue

#80115
"dcp3450" wrote:
there seems to be a stray </p> tag after <div class="top_Post"> and before <div class="last-posts"> I removed it with firebug and the border went away.

I see that too; however, I don’t know how to get rid of it?? It doesn’t seem to be that way on the sub pages? Here is the code:

Code:
<div id="content">
<div class="top">
<?php if(is_home() && !is_paged()): ?>
<div class="top_Post">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php if ( is_sticky() ) { ?>
<div id="" class="l_post">
<?php if(get_settings(‘kasrod_color’)<>”) { $background = get_settings(‘kasrod_color’); } ?>

<div class="post" id="post-<?php the_ID(); ?>">
<h3 class="title" style="background:#<?php echo $background;?>; border-bottom:solid 1px #<?php echo $background;?>; "><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h3>
</div>
<?php //the_content(‘Read more’);
the_content();
?>
<?php wp_link_pages(); ?>
<br/>
<?php edit_post_link(); ?>
<a class="more-link" href="<?php the_permalink() ?>" rel="bookmark" style="color:#<?php echo $background;?>;"
title="Permanent Link to <?php the_title_attribute(); ?>">Read more</a>
</div>
<?php } ?>
<?php endwhile;
if( $sticky_counter == 0 )
{
?>
<p><?php wp_last_posts(1); }?></p>
<?php endif; ?>

</div>