Sparkz
Sparkz

Reputation: 83

CSS Div inline-block content overlay

please help me fix the css div content overlay problem at http://tinyurl.com/n2stvj6 the Related blog post Div., is overlapping post_content Div.

i need the same layout in above url without content overlapping.

<div class="post_content">

      <div class="related-blog-posts">
      related content
     </div>

   <p> content goes here </p>

</div>

Css:
.post_content {
    position:relative;
}
.related-category-posts {
    position: absolute;
    top: 100px;
    right: 0;
    /* display: inline-block; */
    /* overflow: hidden; */
    background: #ccc;
    padding: 10px;
    width:230px;
}

Upvotes: 0

Views: 1484

Answers (1)

Steve
Steve

Reputation: 20469

You can just use floats:

.post_content {
    overflow:hidden
}
.related-category-posts {
    float:right;
    background: #ccc;
    padding: 10px;
    width:230px;
}

Upvotes: 1

Related Questions