I’m creating a photography & travel blog so I have multiple posts and photographs play a big role. I’m creating each blog post under the same CMS collection and I’m using Rich Text for the content ofc, BUT because photographs are very important and have many of them on each post, I need to display them on grids or flexbox and not each photo below the other one…
Problem is the Rich Text only allows to insert a photo but not style it… so my question is, how can I do it?
Now I encountered a second issue - If I try to add text below two images which are set side by side with this css custom code, the text will put on a side (when writing but not on published) instead of below… so it’s very frustating.
Can’t add TEST TEST TEST TEST text below image… can’t add a new paragraph… so I had to create another Rich Text element as a plan B but I don’t want to do this…
Hey @Quitos, I don’t think you will be able to display your images next to each other inside a RTE. What you can do is to create a grid with images from the collection to be displayed between the content.
Unfortunately it looks like it’s not possible to do so. Very disappointing.
I’ve already tried doing what you suggested but it’s too messy. I have 10s of blog posts with different length and structures. I might end up using individual pages for each blog post OR just have each image below each other…
I ran into a similar problem. Then I discovered that you can style rich text elements that are not connected to a collection list. So, set styles within the RTE (such as all paragraphs) before connecting to collection list (if already connected, disconnect, style, and reconnect).
@webdev Hi, thanks for your reply. As I mentioned above (or see quoted message) I managed to put each photo side by side using some custom css, but then on the CMS I couldn’t continue writing below the images because for the css cc to work I had to set images to “align-left” and “align-right” from the RTE image options. So everything was a mess… (see TES TEST TEST text on the screenshot…).
Does anyone has a better custom code ideas that might work? I’ve read ALL Forum posts of people that had the same issue but there is NOT one solution. I hope Webflow sees this and add a native solution…
Hey there. This appears to be a fairly dead topic, but I was able to find a marginal solution to what you (and a client of mine) are wanting. If you add the following custom code to your site (includes a 960 breakpoint)…
@media only screen and (min-width: 960px) {
figure.w-richtext-align-floatleft, figure.w-richtext-align-floatright {max-width: 48%;}
figure.w-richtext-align-floatleft + figure.w-richtext-align-floatright {float: none; display: inline-block;}
} /* end min-width: 960px */
…then whenever you have a float-left image immediately followed by a float-right image, the two should appear side by side in the published site (just not in the editor/Designer).