By bwooster47 on
I am using 4.6, with the image module.
I noticed that the Image Gallery that is created uses HTML like this:
<span class="image thumbnail">...
But the only CSS files included: misc/drupal.css and modules/image/image.css, and the theme related CSS, do not have any definition for that class.
Is this a bug?
-[edit note: sepeck] added code tags for the example to show
Comments
I'm looking for the same answer
Well, close to that. I actually want to try and change the theme of the image gallery. I noticed that the images in the gallery node has a class called "image thumbnail". I tried to define a class in my style sheet but no luck. Does CSS allow spaces?
if its unused its not a bug
Simply because the default does not use it, it does not mean its a bug :). Other themes might use it, still.
In other words: its all over the place. But have a closer look at the function image_display().
In any case: if you want to chnage this behaviour, you should do so in yor theme. Read more on 'theme functions' for this.
---
if you dont like the choices being made for you, you should start making your own.
---
[Bèr Kessels | Drupal services www.webschuur.com]
Not knowing any php, let me ask you...
Isn't that how it goes to the source-code? But where is it defined, so I can change the alignment of just the thumbnails that appear on my page?
.thumbnail works
if you're editing your theme, you can use ".thumbnail" in the theme's CSS. needs a bit of playing around to get it to work though.
In case you haven't worked it out yet.
Hi Bwooster47,
In case you haven't worked it out yet, I needed to change the layout of the thumbnails earlier and did it by...
(the above style put a subtle, flickr.com-style, box around the mages)
Not sure if that's precisely what you were asking..but that did the trick for me. It gives me total control how thumbnails are displayed on the image gallery thumbnail pages.
There are some hard-coded styles in the image.module, such as the forced +75 pixel addition to the height of the thumbnails, but the style sheet should offer a lot of control for you.
Dub
Currently in Switzerland working as an Application Developer with UBS Investment Bank...using Drupal 7 and lots of swiss chocolate
thanks!
Code examples always help, thanks everyone!