Title: Horizontal Related Post
Last modified: August 21, 2016

---

# Horizontal Related Post

 *  Resolved [parsifal66](https://wordpress.org/support/users/parsifal66/)
 * (@parsifal66)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/horizontal-related-post/)
 * Hi !
 * I use this css
 *     ```
       #crp_related ul {
         list-style: none;
         float: left;
         margin: 0;
       }
       #crp_related li, #crp_related a {
         float: left;
         overflow: hidden;
         position: relative;
         text-align: center;
       }
       #crp_related li {
         margin: .9em;
         border: 1px solid #ddd;
         padding: 6px;
       }
       #crp_related li:hover {
         background: #eee;
         border-color: #bbb;
       }
       #crp_related a {
         width: 150px;
         height: 150px;
       }
       #crp_related a:hover {
         text-decoration: none;
       }
       #crp_related img {
         max-width: 150px;
         margin: auto;
       }
       #crp_related .crp_title {
         position: absolute;
         height: inherit;
         bottom: 6px;
         left: 6px;
         padding: 3px;
         width: 144px;  /* = 150px - (3px * 2) */
         color: #fff;
         font-size: .9em;
         text-shadow: #000 .1em .1em .2em;
         background: rgb(0.5, 0.5, 0.5);
         background: rgba(0, 0, 0, 0.5);
       }
       #crp_related li:hover .crp_title {
         background: rgb(0.2, 0.2, 0.2);
         background: rgba(0, 0, 0, 0.8);
       }
       ```
   
 * But the related post are in vertical. I’d like to see them in a horizontal row.
   
   Where is my error ?
 * Thank you
 * [http://wordpress.org/plugins/contextual-related-posts/](http://wordpress.org/plugins/contextual-related-posts/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/horizontal-related-post/#post-4292803)
 * Hi, the code you posted above is working properly for me and puts the posts I
   have on my site horizontally.
 * Can you post a link to your site?
 * You need to also ensure that you don’t have the Author or date or excerpt being
   displayed.
 *  Thread Starter [parsifal66](https://wordpress.org/support/users/parsifal66/)
 * (@parsifal66)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/horizontal-related-post/#post-4292818)
 * Yes, this is your code and I’d like to use it on my website
 * This is the link
    [http://www.provaitg.net/aoki-konyo/](http://www.provaitg.net/aoki-konyo/)
 * I’ve disabled excerpt, author and date
 * Thank you !
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/horizontal-related-post/#post-4292820)
 * Can you try by deleting the `float: left;` in `#crp_related li, #crp_related 
   a {`
 * Updated part of code:
 *     ```
       #crp_related li, #crp_related a {
         overflow: hidden;
         position: relative;
         text-align: center;
       }
       ```
   
 *  Thread Starter [parsifal66](https://wordpress.org/support/users/parsifal66/)
 * (@parsifal66)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/horizontal-related-post/#post-4292829)
 * I’ve tried, but the result is the same 🙁
 * [http://www.provaitg.net/cipango/](http://www.provaitg.net/cipango/)
 *     ```
       #crp_related li, #crp_related a {
         overflow: hidden;
         position: relative;
         text-align: center;
       }
       ```
   
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/horizontal-related-post/#post-4292882)
 * Hi, I see this in a horizontal form.
 * Check out the screenshot I just took:
 * [http://awesomescreenshot.com/07d1xc4pb0](http://awesomescreenshot.com/07d1xc4pb0)
 *  Thread Starter [parsifal66](https://wordpress.org/support/users/parsifal66/)
 * (@parsifal66)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/horizontal-related-post/#post-4292890)
 * Yes. I’ve resolved the problem.
 * It was a “<p>” that I’ve put in “HTML to display before each list item:”
    I removed
   it and now the css work properly
 * Thank you very much !
 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/horizontal-related-post/#post-4292915)
 * Your welcome. Glad to know this is resolved 🙂
 * Do consider writing [a review](https://wordpress.org/support/view/plugin-reviews/contextual-related-posts)

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Horizontal Related Post’ is closed to new replies.

 * ![](https://ps.w.org/contextual-related-posts/assets/icon-256x256.png?rev=2985705)
 * [Contextual Related Posts](https://wordpress.org/plugins/contextual-related-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contextual-related-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contextual-related-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/contextual-related-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contextual-related-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contextual-related-posts/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)

 * 7 replies
 * 2 participants
 * Last reply from: [Ajay](https://wordpress.org/support/users/ajay/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/horizontal-related-post/#post-4292915)
 * Status: resolved