Render partials using display:inline instead of block

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

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

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs