Drupal Views Question: Displaying results in two columns?

I am new to drupal and I have a question about views:

I am creating an employee directory and should display the results in two columns, for example:

Record 1 Record 2

Record 3 Record 4

Record 5 Record 6,.

How can i do this?

To take this one step further, I want each entry to be formatted as:

IMAGE NAME

     TITLE

I don’t know where to start. Any help is appreciated!

+3
source share
3 answers

You can:

  • select Style: Grid (this will give you a table with as many rows as you want).
  • use CSS. The fastest way to do this:
    .view-id-$VIEWNAME .views-row{float: left; width: 40%; }
    . , :
    .view-id-$VIEWNAME .view-content{overflow: hidden;}
+5

"": "" ( , ).   2 .     css  .view-id- $VIEWNAME.views-row {float: left; padding: 5px; : 40%; }

0

, .

Node: Type, , .

. .

" " "" ( , ).

, .

-1

Source: https://habr.com/ru/post/1746013/


All Articles