Results 1 to 6 of 6

Thread: Gallery CSS Classes for first

  1. #1
    New user
    Join Date
    04-08-10.
    Location
    Germany
    Posts
    3

    Default 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

  2. #2
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default 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.

  3. #3
    New user
    Join Date
    04-08-10.
    Location
    Germany
    Posts
    3

    Default 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:


  4. #4
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default 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.

  5. #5
    New user
    Join Date
    04-08-10.
    Location
    Germany
    Posts
    3

    Default Re: Gallery CSS Classes for first

    Yes, thank you

  6. #6
    Experienced user
    Join Date
    06-10-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default 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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •