# Render partials using display:inline instead of block

**URL:** <https://www.ruby-forum.com/t/render-partials-using-display-inline-instead-of-block/73513>\
**Category:** Rails\
**Created:** [October 25, 2006, 12:16am UTC](https://www.ruby-forum.com/t/render-partials-using-display-inline-instead-of-block/73513 "2006-10-25T00:16:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sweb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90db22/32.png) [@sweb](https://www.ruby-forum.com/u/sweb)\
**Post date:** [October 25, 2006, 12:16am UTC](https://www.ruby-forum.com/t/render-partials-using-display-inline-instead-of-block/73513/1 "2006-10-25T00:16:49Z")

</div>

I have partial \_month that I contains a link for each day of the month  
to edit the Day record nicely lined up into rows of 7 under the headings  
for the days of the week–a calendar month. This partial is rendered 12  
times on a page for a given year. I can’t figure out how to render the  
partial inline rather than in blocks so that I can put more than one  
month on a line.

How do I do this?

Sam

---

<div class="post-metadata">

**Author:** ![sweb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90db22/32.png) [@sweb](https://www.ruby-forum.com/u/sweb)\
**Post date:** [October 25, 2006, 8:01pm UTC](https://www.ruby-forum.com/t/render-partials-using-display-inline-instead-of-block/73513/2 "2006-10-25T20:01:26Z")

</div>

Used a table. Sam

Sam W. wrote:

> I have partial \_month that I contains a link for each day of the month  
> to edit the Day record nicely lined up into rows of 7 under the headings  
> for the days of the week–a calendar month. This partial is rendered 12  
> times on a page for a given year. I can’t figure out how to render the  
> partial inline rather than in blocks so that I can put more than one  
> month on a line.
> 
> How do I do this?
> 
> Sam

---

<div class="post-metadata">

**Author:** ![sweb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/90db22/32.png) [@sweb](https://www.ruby-forum.com/u/sweb)\
**Post date:** [October 25, 2006, 8:04pm UTC](https://www.ruby-forum.com/t/render-partials-using-display-inline-instead-of-block/73513/3 "2006-10-25T20:04:24Z")

</div>

CSS rather than Rails, but if you’re enclosing the partial in a div,  
change  
it to a span. Or style the element with display: inline.

Vish
