Closed (fixed)
Project:
ImageField
Version:
6.x-3.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
12 Oct 2008 at 14:13 UTC
Updated:
20 Feb 2011 at 05:30 UTC
Hi,
I'm interesting in styling the images I upload with imagefield, in the beginning I looked for a way to add my own css atribute to the image, not finding a way I went the easeir way: just looked using firebug what the class the module give to the image. Found out its: imagefield imagefield-field_fieldname. The problem is css theming just isn't working for some reason.
I place the following code, in many variation and played with it but something seem to work.
.imagefield imagefield-field_mainimage {
margin: auto;
display:block;
padding:10px }
Any idea if I'm missing something?
Thanks in advance
Comments
Comment #1
saltcod commentedNot knowing how much css you know, I'll start from scratch:
Make sure you've got things specific enough:
This will put a border around the containing block that the image is in. Whereas, this will put a border around the actual image:
Again, don't mean to talk down to you if you know this already, but would be a good idea to rule out this css error.
Best,
Terry
Comment #2
quicksketchThanks saltcod. CSS questions aren't really in scope for the ImageField queue anyway, I'm closing this issue.
Comment #3
syaman commentedThank you for this post. I have also found it to be incredibly helpful!