# Mailing labels

**URL:** <https://www.ruby-forum.com/t/mailing-labels/196057>\
**Category:** Rails\
**Created:** [October 6, 2010, 5:33am UTC](https://www.ruby-forum.com/t/mailing-labels/196057 "2010-10-06T05:33:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adistarmid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f14d63/32.png) [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Post date:** [October 6, 2010, 5:33am UTC](https://www.ruby-forum.com/t/mailing-labels/196057/1 "2010-10-06T05:33:11Z")

</div>

Any easy way to print on mailing labels that have 3 columns? I need  
these to fit in my laser printer. I have no trouble with single column  
labels, but I don’t know how to make a partial display 3 times across  
a page with different records.

Thanks

Bob [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![adistarmid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f14d63/32.png) [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Post date:** [October 6, 2010, 5:57am UTC](https://www.ruby-forum.com/t/mailing-labels/196057/2 "2010-10-06T05:57:46Z")

</div>

CSS floats, maybe?

DIV (page width)  
DIV (float left, label width) DIV (float left, label width) DIV (float  
left, label width)  
DIV (float left, label width) DIV (float left, label width) DIV (float  
left, label width)  
DIV (float left, label width) DIV (float left, label width) DIV (float  
left, label width)  
DIV (float left, label width) DIV (float left, label width) DIV (float  
left, label width)  
etc…

Walter

---

<div class="post-metadata">

**Author:** ![adistarmid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f14d63/32.png) [@adistarmid](https://www.ruby-forum.com/u/adistarmid)\
**Post date:** [October 6, 2010, 3:08pm UTC](https://www.ruby-forum.com/t/mailing-labels/196057/3 "2010-10-06T15:08:09Z")

</div>

Bob S. wrote:

> Any easy way to print on mailing labels that have 3 columns? I need  
> these to fit in my laser printer. I have no trouble with single column  
> labels, but I don’t know how to make a partial display 3 times across  
> a page with different records.

render :partial, :collection

For precision printing, you’ll probably want to generate a PDF file  
using Prawn, wkhtmltopdf, or some other similar library.

> Thanks
> 
> Bob [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

Best,  
–Â  
Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid

Sent from my iPhone
