Add a wrapper around the image
NancyDru - November 10, 2007 - 15:45
| Project: | Taxonomy Image |
| Version: | 5.x-1.x-dev |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | NancyDru |
| Status: | closed |
Jump to:
Description
I have been working to get other modules to include support for TI. The latest is the FAQ module.
However, this new usage produces lists and because the image sizes may not all be the same width, those lists can look ragged. To fix this, I coded up this little patch to add a wrapper <div> around the image. There is also a new setting to turn it on, so no one will have a broken implementation.
This allowed me to do this with my CSS:
.faq .taxonomy_image_wrapper {
float: left;
width: 70px;
margin-bottom: 0.5em;
padding: 0px 0px 0px 0px;
}
img.faq_tax_image {
padding: 0px 0px 0px 0px;
}So now everything lines up correctly.
This would also allow other little things, like putting a fancy border around it, or add a background color or frame.
| Attachment | Size |
|---|---|
| tximg_wrapper.txt | 1.85 KB |

#1
#2
Thanks for posting this -- works great!
This was exactly what I was looking for, to display my multiple taxonomy_images per node neat and orderly.
Cheers,
//TB
#3
fix committed.
#4
Automatically closed -- issue fixed for two weeks with no activity.