Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

AEM Layout Grid + Fluid Layout

Avatar

Level 3

When trying to implement the AEM Grid system on a site, is it possible to allow content to flow around another component based on that component's size in the Grid? It seems that the text component can only be either 100%, or the width that you set in the Grid, no fluidity.

I've attached a screenshot as an example.

responsive.PNG

Thanks!

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi Matthew,

as these two are 2 different components (image and text) it’s not possible to overflow one on the other.

2 ways to handle this.

1. Combine this to one component ‘imageText’ and handle it via css style

2. Break the text component to 2 text components and add the content accordingly

View solution in original post

3 Replies

Avatar

Level 10

See this section of the Weekend tutorial - where this is covered.

Getting Started with AEM Sites Chapter 3 - Client-Side Libraries and Responsive Grid

It works as you suggested - when you follow the instructions in the doc - you set the width of the grid.

Hope this helps....

Avatar

Correct answer by
Level 10

Hi Matthew,

as these two are 2 different components (image and text) it’s not possible to overflow one on the other.

2 ways to handle this.

1. Combine this to one component ‘imageText’ and handle it via css style

2. Break the text component to 2 text components and add the content accordingly

Avatar

Level 3

smacdonald2008​ This looks more like creating individual columns for the elements. I'm looking to one layout container that I drag a text and an image component into. From there, using the layout tools, adjust the images width, and  have the text from the text component flow around it. As bsloki​ mentioned, I could create another component to achieve this, however IMO, that seems a bit overkill to simply position an image using the responsive grid.

I'll continue to look for a solution. Thanks for your replies!