Gallery CSS Classes for first
Hello :)
First, sorry for my bad english, I'm from Germany ;D
I'm using the gallerymodule at my homepage. On other modules like newslists and eventlists you have CSS classes for the first and last item. I'm trying to format the first item of my gallery, but without CSS classes it isn't possible, I think. So my question is if there is a way to give the first item a CSS class. It doesn't matter, if the name of this item is like "first" or "1" or something like that. Important is only, that the first item has a class, which no other items has.
I tried it with a foreach loop but without success. It only shows me all classes for all items or only one class for all items.
Thank you in advance.
Best wishes
Echo
Re: Gallery CSS Classes for first
The gallery code was copied from the ce_gallery code, so I just piggy backed off that.
The class statement includes row_first and col_first as well as row_last and col_last, so the classnames are there and do exist.
Re: Gallery CSS Classes for first
Yes, thats right, they do exist, but they don't do their job :D
On ALL gallerys I have this code:
tr .row_0 row_first even
td .col_0 col_last
I only show one picture of the gallery and six gallerys next to each other. So the classes row_first, col_first, row_last, col_last are only for the option to show more than one picture of a gallery, right?
I'm going to make a picture, how it looks and how it have to look, because I can't explain it in english very good ;D
Here is the picture:
http://img196.imageshack.us/img196/313/galleryt.jpg
Re: Gallery CSS Classes for first
I'll add this to my list, as I understand now you mean gallery classes, not image grid classes.
Re: Gallery CSS Classes for first
Re: Gallery CSS Classes for first
I've added the gallery class code for each gallery in the list.... you can also view the gallery completely, 1 row and change the sort order to random to create a bit of additional interest.