views:

157

answers:

2

I'm new to drupal and I have a question about views:

I'm building an employee directory and need to display the results in two columns, such as:

Record 1 Record 2

Record 3 Record 4

Record 5 Record 6 . . .

How can I accomplish this?

To take it one step further, I want each record formatted as:

IMAGE NAME

     TITLE

I have no idea where to start. Any assistance is appreciated!

+2  A: 

you can either:

  • choose Style: Grid (this will give you a table with as many rows you'd like).
  • use CSS. quickest way to do it:
    .view-id-$VIEWNAME .views-row{float: left; width: 40%; }
    add some margin-bottom and fixed-height as well. also, you may find it useful to add:
    .view-id-$VIEWNAME .view-content{overflow: hidden;}
barraponto
A: 

You could change the style of your view to Table, which would give you columns.

First, add a Node: Type filter that only displays the content you want.

Next, add your fields. You can change the Label to the name of the column.

Then under Basic Settings, change the Style flag to Table (or another format if you prefer).

You can then see how the live preview outputs your view.

Jukebox
The table style will put the fields across the top (x-axis) and the records as the rows. I believe @Jonathan wants each record as a unit in a two column layout.
sprugman

related questions