Grow your CSS skills. Land your dream job.

Top border issue

  • # July 20, 2010 at 12:15 pm

    Hi all,

    I’m having a bit of trouble figuring out how to make this top border go away. Because of this it’s covering up part of the top background image. I tried making the background of the div tranparent in hopes it would allow the background image to show behind it…BUT no such luck. NEED HELP :)

    Site URL:
    http://campbell-legal.com/

    Thanks,
    Nick

    # July 20, 2010 at 1:19 pm

    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.

    # July 20, 2010 at 4:47 pm
    "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>

    # July 20, 2010 at 5:14 pm

    it’s inside the content for the main page. thats the only place it can be.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".