Download & Extend

Better CSS classes for images (even/odd/# + custom?)

Project:Inline
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

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.

Comments

#1

Sorry, it seems that I wrote terribly in my last message. Re-phrase:

Currently, inline associates one css class .inline to the image element. Can this be made multiple, and selectable by tags in the article such as [inline1:...] [inline2:...] etc?

Many thks,
Peter.

#2

Title:More <div classes> options for inline image?» More class options for inline image?

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

Title:More class options for inline image?» Separate CSS classes for images

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

Title:Separate CSS classes for images» Better CSS classes for images (even/odd/# + custom?)
Version:5.x-1.1» 6.x-2.x-dev

Better title.

#218161: inline-even and inline-odd css classes for images has been marked as duplicate of this issue.