Need help with theming grid view

freelylw - April 22, 2009 - 16:11

I am using grid view to list a gallery , because some of the tile are much longer than others, so make the grid doesn't align to each other, (when the titles bellow them are longer, the thumbnails are higher than thumbnail with shorter titles bellow them).

Can anyone tell me how to solve this problem.

test site : http://www.architecture.name/architecture-grid

what I am trying to add staff into the table section of style.css, but I think i am probabley wrong for doing this. because once I change the table section, then all other table will be change as well.

How can I add a section only for this grid view ?

Thanks

What I do is add this rule to

nevets - April 22, 2009 - 16:23

What I do is add this rule to style.css

table.view-grid td {
   vertical-align: top;
}

If you want to apply it to only this one grid view you can use

.view-architecture-grid  table.view-grid td {
   vertical-align: top;
}

_

pbarnett - April 22, 2009 - 18:04

You might want to do a $view->gridcount = 3; in your template or in the view's argument handling code so the table doesn't overflow it's containing div.

Pete.

I have tried both methods but

Ole Martin - April 28, 2009 - 19:50

I have tried both methods but it did not help. Some other suggestions?
@freelylw:
How did you solved it?

I just use the code

freelylw - April 28, 2009 - 21:41

I just use the code above

.view-architecture-grid table.view-grid td {
vertical-align: top;
}

It works fine for me.

Change 'architecture-grid' to the name of your views.

Discovered that I use

Ole Martin - April 28, 2009 - 22:22

Discovered that I use "horizontal" and not "vertical".
So then it was to use
"horizontal-align: top;"
It seems to work fine now. Have to study more later.
Tanks.

Some more information ;-]

Ole Martin - April 30, 2009 - 08:36

Works in
ad blueprint - had to edit the css file
Interactive Media - had to edit the css file - is unstable - depending on the amount of the node. thumbernail destroys the height so that the grid is not align. Any way to fix this?
BlueTrip - with out edit css

Does not work in
Blue lake - I try to edit the css file

Someone else who has any results for this function?

not coming through

lmfisher100 - June 3, 2009 - 20:41

any suggestions, ? the sbaove style.css editing with horiz and vert in all manners in the theme shallow grunge and gettin no where but more eye burn. any suggestions are helpful thank you.
did paste the css style edit at the very bottom of the style sheet and maybe it goes in a different place ...

=-=

VM - June 3, 2009 - 20:50

placing it at the bottom of the style.css is fine. Are you using css aggregation? if so it must be turned off first in administer -> performance

never tried this but i will fer sure now, ALL of 'em are off

lmfisher100 - June 4, 2009 - 03:20

all are off, 'cept for the page compression is enabled , optimize css disabled, also thanks for the reply, still gettin the pictures in a list, "i know its just this one little thing...." (-that will take several hours to figure out)

More trouble with this

Ole Martin - August 11, 2009 - 07:42

Have been away from this because of illness, but is now back to completing the project. The grid works fine but I get a different width of the columns, both at 2 and more columns, using "Blue Trip". In other different theme the heading and text will not be horizontal align, but centered i cells, and also here I get different width.
All installations are up-to-date.
Some good solution to the problem?

 
 

Drupal is a registered trademark of Dries Buytaert.