treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Top border issue

  • 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
  • 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.
  • "dcp3450" said:
    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:
        &lt;div id=&quot;content&quot;&gt;
    &lt;div class=&quot;top&quot;&gt;
    &lt;?php if(is_home() &amp;&amp; !is_paged())&#58; ?&gt;
    &lt;div class=&quot;top_Post&quot;&gt;
    &lt;?php if ( have_posts() ) &#58; while ( have_posts() ) &#58; the_post(); ?&gt;
    &lt;?php if ( is_sticky() ) { ?&gt;
    &lt;div id=&quot;&quot; class=&quot;l_post&quot;&gt;
    &lt;?php if(get_settings('kasrod_color')&lt;&gt;'') { $background = get_settings('kasrod_color'); } ?&gt;

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

    &lt;/div&gt;
  • it's inside the content for the main page. thats the only place it can be.