Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

swapping text and image side by side using aem

SahrudayaB
Level 2
Level 2
 
1 Accepted Solution
SahrudayaB
Correct answer by
Level 2
Level 2

swapping text and image side by side in single component.

Capture.PNG

View solution in original post

6 Replies
SahrudayaB
Correct answer by
Level 2
Level 2

swapping text and image side by side in single component.

Capture.PNG

SahrudayaB
Level 2
Level 2

can I put image and text side by side in one component by choosing the alignment of text (either left  or right of image) in dialog box. Based on the input chosen in the dialog box, can I change the position of text and image.

kalyan_maverick
Level 3
Level 3

hello @SahrudayaB 

do you need the code for the above mentioned component.??

this is a teaser component with two css classed with extension (.less).

we then add the classes to the component by editing it in the page template.

just le me know what help do you need.

 

SahrudayaB
Level 2
Level 2

can I put image and text side by side in one component by choosing the alignment of text (either left  or right of image) in dialog box. Based on the input chosen in the dialog box, can I change the position of text and image.