XF 2.2 Pictures framed by text

  • Thread starter Thread starter Deleted member 184953
  • Start date Start date
D

Deleted member 184953

Guest
Is there a way to prevent this ?
In mobile view can images be prevented from being framed? I don't know the exact term for this feature, sorry.
Thank you.

image0.webp
 
Solution
D
Tried this and it works perfectly.
Less:
@media (max-width: 900px) {
    .bbImageAligned--right, .bbImageAligned--left {
        min-width: 100%;
    }
}
Sad Cartoon GIF
 
The images have a fixed width and are aligned left.

The text therefore wraps around them.

As the viewport width is reduced, the image retains its fixed width and the available space for the text reduces until there is no space left other than for the image, which then reduces in size with the available width of the div.

There is nothing which can be done other than to not align the image, or not provide a width for it, or set the style as a fixed width and not be responsive.
Or all three.
Or a combination thereof.
 
Depends on your screen size too. Looks good to me in portrait until it hits the Preview block. In landscape that block looks fine but others look messed up. It's fluid and going to happen.
 
Thanks.
I was wondering if it was not possible to globally remove the floating under a certain screen width with a little CSS code in extra.less ?
 
I found those class : bbImageAligned--left and bbImageAligned--right
Can we play with them in extra.less template ?

Less:
@media (max-width: 650px) {
    .bbImageAligned--right, .bbImageAligned--left {
        something: here;
    }
}
 
Tried this and it works perfectly.
Less:
@media (max-width: 900px) {
    .bbImageAligned--right, .bbImageAligned--left {
        min-width: 100%;
    }
}
 
Solution
Back
Top Bottom