Better CSS classes for images (even/odd/# + custom?)
mine@subnet142.com - June 20, 2007 - 09:26
| Project: | Inline |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Currently, there is only one class "inline-images" that I can code against in my style.css. Actually, it would be nice if I can specify say [inline2:] in the article to denote for an inline2-images class at the html output so that I can choose between styles (basically float:left of float:right) for the different images in the same article.
Cheers,
P.

#1
Sorry, it seems that I wrote terribly in my last message. Re-phrase:
Currently,
inlineassociates one css class.inlineto the image element. Can this be made multiple, and selectable by tags in the article such as [inline1:...] [inline2:...] etc?Many thks,
Peter.
#2
I'd be interested in this.
Ideally:
class="inline inline-n custom"
That would allow for automatic styling of inline images depending on their order, and for manually applying classes - something like [inline:1 class=custom] or [inline:1 custom]
#3
As long as the new Inline filter syntax has not been implemented this won't be possible. All we might implement for now is an additional odd/even class for each image, that would basically allow alternating aligns through stylesheets based on the classes inline-odd and inline-even. Those could be injected additionally and automatically, without generating upgrading issues for existing users.
I don't think that another class with a counter, e.g. inline-#, would be helpful in any way. If a site design is dealing that special with images, one should go with CCK imagefields or something else instead.
#4
inline-odd inline-even sounds great, shoulda thought of that.
thanks for link to inline syntax. Looks interesting.
#5
Better title.
#218161: inline-even and inline-odd css classes for images has been marked as duplicate of this issue.