0

If using Insert module, in the field editing, we can put Additional CSS classes to the image being inserted.

I need the images float right. So I type floatrimg in the field editing, and .floatrimg {float:right;margin:0 0 10px 10px;} in CSS. It works fine.

But if I need to have 2 images in one post: one image float right, another one float left, I need 2 image fields.

I hope I can have one image field, where multiple choices of CSS class can be selected when submitting. So that with one image field, I can insert image float right and float left.

1 Answer 1

0

I would suggest you to create two presets. Each preset can then be styled and positioned with CSS and the .imagepresetname class. You just have to activate the presets you like on the field in the "Insert" settings.

2
  • Do you means image style preset?
    – jibotak
    Commented Mar 2, 2012 at 9:14
  • Yes exactly ...
    – Lance
    Commented Mar 2, 2012 at 10:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.