Find The Right SEO Service For Your Business

We cover the full spectrum of SEO services from local SEO to international SEO. Choose the SEO service right for you and call us today for a free confidential chat about your digital marketing.

SEO

SEO Services →

Digital Marketing Service →

Digital PR Service →

Ecommerce SEO →

Organic SEO Services →

Image Optimisation →

URL Structure Optimisation →

Internal Linking →

Page Speed Optimisation →

User Experience Optimisation →

Free SEO Audit

Find out why your website isn't ranking on the top of Google and what actionable steps you can take, with our free no obligation SEO audit.

Free SEO Audit →

How To Align Images In A Single Row

By Paul - SEO Consultant
Published:
Tags:
Categories: Divi

h 3 Table Of Content

How to align multiple images horizontally in a single row on WordPress – Divi

This quick guide will walk you through how to align images next to each other in a single row.

Prerequisites

Ensure you’re ready with:

  • A WordPress website with Divi Theme installed.
  • Basic familiarity with Divi Builder.
  • Some understanding of HTML and CSS for tweaks beyond Divi’s built-in options.

Step 1: Setting Up Your Section in Divi Builder

Start by logging into your WordPress dashboard and navigating to the page where you want to add the text and image section. Open the page in Divi Builder.

  1. Add a New Section: Click on the blue plus button to add a new section and select “Regular” from the options.
  2. Insert a Row: Choose a row structure.
  3. Add Image Modules: In the single column, add a “image” module. 

    Step 2: Applying Custom CSS Class To The Row You Want To Align The Images In

    To apply custom CSS:

    1. Go to Row Settings: Click on the cog icon on the row you want to use.
    2. Click Advanced Tab: Here click CSS ID & Classes, then copy and page “images-under-text” in the CSS Class as shown in the picture below.

    css

    images-under-text

     

    CSS To align images in divi row

    Step 3: Applying The Custom CSS Code To Your Theme Options

    Now for it to work whenever you want to use it in a CSS Class go to theme options custom CSS:

    1. Go to the wordpress admin page: Click on DIVI, then theme options.
    2. Scroll down to custom CSS: Then copy and page this code to align three images underneath a text box or edit it to align images as you see fit.

    css

    .images-under-text .et_pb_image {
    display: inline-block; /* Aligns the image modules side by side */
    width: 33.33%; /* Each image takes up one-third of the row */
    vertical-align: top; /* Ensures images align at their tops if they have different heights */
    box-sizing: border-box; /* Includes padding and border in the element's total width and height */
    }
    .images-under-text .et_pb_text {
    width: 100%; /* Ensures the text module spans the full width of the row */
    margin-bottom: 20px; /* Adds space between the text and the images */
    }

    Align Images in a single row in divi

    This CSS ensures each image uses the full width of each column and aligns them correctly.

    Step 4: Review and Adjust Responsiveness

    Divi is designed to be responsive, but checking how your new layout looks on different devices is a good practice. Use Divi’s built-in visual builder to toggle between desktop, tablet, and mobile views, making adjustments as needed.

    • Adjusting for Mobile: If the images look too small on mobile, consider setting them to stack vertically rather than horizontally. You can easily adjust this under the Design tab for each image module by changing the width and overriding global settings on mobile views.

    Step 5: Save and Preview Your Page

    Once you’re satisfied with how everything looks, don’t forget to save your changes. Click the green Save button, then preview the page to ensure everything looks as expected in a live environment.

    Final Thoughts

    Styling a text and image section using Divi Builder provides both flexibility and power, allowing you to create professional and appealing layouts without extensive coding knowledge. Remember, the key to a successful layout in Divi lies in balancing custom CSS with the robust options that Divi already provides. Experiment with different designs and configurations to see what works best for your content and aesthetic preferences. Happy designing!

    Align Images in a single row in divi

    First Place SEO, International House, 4 Maddox St, London W1S 1QP

    02071128794

    First Place SEO Agency London

     

    Sep 02 2024

    Advanced Mode Set Up Google Consent V2

    How to set up Google Consent V2 in ADVANCED Mode for WordPress for free with CookieYes and Google Tag Manager. Video & Instructions Links

    Why your wordpress website might not be ranking - First Place SEO
    Sep 01 2024

    Why Your WordPress Website Might Not Be Ranking

    Learn how to improve your WordPress site’s SEO by addressing key ranking factors. Don’t let common mistakes hold you back

    SEO Marketing and Strategy - First Place SEO
    Sep 01 2024

    Why Consistent Keyword Use is Key to Marketing

    Why are keywords important, how to find the right ones and how consistent use can boost your brand’s impact across all platforms. Master keywords

    How Do I Know If I Need SEO - First Place SEO
    Aug 31 2024

    How Do I Know If I Need An SEO?

    SHOCKING stats reveal that most businesses are missing out due to no SEO. Here is how you can fix this issue with just a single move.

    SEO Myths Debunked - First Place SEO
    Aug 30 2024

    24 SEO Myths To Forget About It In 2024

    We clear up the top 24 SEO myths for you so you can focus on what really matters and leave the nonsense and noise behind.

    SEO Questions Your Should Ask
    Aug 29 2024

    8 Important SEO Questions You Have Probably Never Asked

    Here are 8 important questions about SEO that may be on your mind but have never asked. Keep learning and improving your SEO knowledge

    Meta Author Tag - First Place SEO
    Aug 29 2024

    Lesser Known Meta Tags That Will Help Your SEO

    Find out how overlooked meta tags such as viewport, charset & robots can enhance your website’s mobile usability, indexing & SEO performance.

    Meta and Alt Tags For Better SEO
    Aug 29 2024

    How Do Meta Descriptions, Headings, and Alt Text Work Together for Better SEO?

    Together, meta descriptions, heading tags, and alt text make your content more accessible and SEO-friendly. Learn how to use them effectively.

    Website User Experience - First Place SEO
    Aug 28 2024

    What Makes a Great User Experience? Key Web Design Tips for Small Businesses

    Struggling with high bounce rates? Find out how to optimise your website’s user experience to keep visitors engaged and improve conversion rates with these...
    How to ad blockers affect seo - first place seo
    Aug 26 2024

    How Ad Blockers Affect SEO

    Do Ad Blockers Affect SEO? Our Insights and Practical Strategies I am someone who has spent years working in digital marketing and SEO. So it is safe to say I have seen...