Jump to:

22999 Posts in 11854 Topics by 2828 members

General Questions

SilverStripe Forums » General Questions » Text wrap breaks when image has caption

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1354 Views
  • honeybunny
    Avatar
    Community Member
    79 Posts

    Text wrap breaks when image has caption Link to this post

    Is anyone else having a problem using text wrap (floating) with images with a caption?

    I can insert an image with text wrap into a page with the tiny mce/text editor without a caption, but the text wrap fails when I add a caption. The image and caption stay together, but the text breaks to the next line after the image/caption. The problem is that the system is not setting the float attribute (left or right) for the class captionImage when the image has a caption. Can someone tell me which file the editor uses to set the style for captionImage? I can override it in the html editor, but it defeats the purpose of using a cms if you have to go in and add/change code for the most basic functions. If it makes a difference, I'm using SS 2.42.

    Thanks!

    HB

  • ampedup
    Avatar
    Community Member
    133 Posts

    Re: Text wrap breaks when image has caption Link to this post

    Make sure you have the css for this to work:

    .captionImage.left {
       float: left;
    }

  • Geek2012
    Avatar
    Community Member
    2 Posts

    Re: Text wrap breaks when image has caption Link to this post

    Am also having problems, when i insert an image with the option on the left with text wrapping around it, it doesnt wrap the text around it and the image is always at the left. Help!!1

  • Geek2012
    Avatar
    Community Member
    2 Posts

    Re: Text wrap breaks when image has caption Link to this post

    Am also having problems, when i insert an image with the option on the left with text wrapping around it, it doesnt wrap the text around it and the image is always at the left. Help!!1

  • ampedup
    Avatar
    Community Member
    133 Posts

    Re: Text wrap breaks when image has caption Link to this post

    Do you have the correct css to make the image float?

    1354 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.