Problem:
Client is outputting images with related text and wants the image on the left, and the text on the right.
Solution:
This is commonly known as the media object layout and can be achieved in a number of ways.
In this example this is the markup format used in the template linked to the Loop Output:
<div class="media-block"> <div class="media-block-left"> [wpv-post-featured-image] </div> <div class="media-block-right"> <h3>[wpv-post-link]</h3> [wpv-post-excerpt] </div> </div>
And this is the custom CSS to achieve the layout:
.media-block { display: flex; align-items: flex-start; } .media-block-left { margin: 10px 10px 0 0; } .media-block-right { flex: 1; }
Relevant Documentation:
@https://css-tricks.com/media-object-bunch-ways/
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | - |
- | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | - |
Supporter timezone: Europe/London (GMT+00:00)
This topic contains 2 replies, has 2 voices.
Last updated by 6 years, 3 months ago.
Assisted by: Nigel.