Our Partners Section Design HTML CSS

This our partners section design HTML CSS tutorial shows you how to build a dark two-column layout with a large heading on the left and a logo grid on the right. The grid draws its divider lines using a 1px gap over a lighter background, so you do not need any extra borders. The logos scale with the min() function, and the layout collapses to a single column on tablet and below.

Final output:

The company
we keep.

Trusted by teams building the products people use every day.

our partners
our partners
our partners
our partners
our partners
our partners


Steps for Our Partners Section Design:

1. Start with Our Partners section structure and Base Styles

Link the Manrope font from Google Fonts in the head.

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap" rel="stylesheet">

Let’s start with a section element with the class our-partners-section. Inside it, I am adding a .section-container div with an .our-partners-grid, and inside that, an .our-partners-left and an .our-partners-right div.

<section class="our-partners-section">
    <div class="section-container">
        <div class="our-partners-grid">
            <div class="our-partners-left"></div>
            <div class="our-partners-right"></div>
        </div>
    </div>
</section>

Then reset the margins and set Manrope as the font family. Give the section a near-black background with a warm cream text color, and use clamp() on the vertical padding so it scales with the screen. Finally, center the container with the margin inline property set to auto and a max width.

* {
    margin: 0;
    box-sizing: border-box;
}
body {
    font-family: "Manrope", sans-serif;
}
.our-partners-section {
    padding: clamp(5rem, calc(1rem + 10vw), 10rem) 5%;
    background-color: hsla(60, 3%, 8%, 1);
    color: hsla(45, 29%, 95%, 1);
}
.our-partners-section .section-container {
    max-width: 90rem;
    margin-inline: auto;
}

2. Create the Two-Column Layout

Next, use a two-column grid on .our-partners-grid so the text takes up slightly more space than the logos. Add a row gap, since the columns stack on smaller screens. On tablet and below, collapse to a single column.

.our-partners-section .our-partners-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    row-gap: 4rem;
}
@media screen and (max-width: 992px) {
    .our-partners-section .our-partners-grid {
        grid-template-columns: 1fr;
    }
}

Now fill in .our-partners-left with a label, a heading with a span, and a short description.

<div class="our-partners-left">
    <p class="section-label">Built with the best</p>
    <h2>The company <br> we keep<span>.</span></h2>
    <p>Trusted by teams building the products people use every day.</p>
</div>

Output:

The company
we keep.

Trusted by teams building the products people use every day.

3. Style the Heading and Description

Set the align content property to center so the text sits in the vertical middle of the logo grid. Style the label with a small bold uppercase font and a wide letter spacing. For the heading, I am using clamp() on the font size, plus a tight line height and a negative letter spacing. The period inside the span gets a lime color, so it works as a small accent.

.our-partners-section .our-partners-left {
    align-content: center;
}
.our-partners-section .section-label {
    font-weight: 600;
    font-size: .75rem;
    line-height: 1.4;
    letter-spacing: 2.09px;
    text-transform: uppercase;
}
.our-partners-section .our-partners-left h2 {
    font-weight: 500;
    font-size: clamp(3.5rem, calc(1rem + 6vw), 5.5rem);
    line-height: .95;
    letter-spacing: -0.06em;
    max-width: 35rem;
    margin-block: 1.25rem 1.875rem;
}
.our-partners-section .our-partners-left h2 span {
    color: hsla(79, 100%, 66%, 1);
}

Then style the description with a muted gray color and a max width, so the line stays short and easy to read.

.our-partners-section .our-partners-left p:last-child {
    font-size: 1rem;
    line-height: 1.5;
    color: hsla(53, 4%, 60%, 1);
    max-width: 21.75rem;
}

Output:

The company
we keep.

Trusted by teams building the products people use every day.

4. Build the Logo Grid

Finally, fill in .our-partners-right with a .our-partners-logo-grid div. Inside it, add six .logo-wrapper divs, each with one logo image.

<div class="our-partners-right">
    <div class="our-partners-logo-grid">
        <div class="logo-wrapper">
            <img src="northstar.png" alt="">
        </div>
        <div class="logo-wrapper">
            <img src="kinetic.png" alt="">
        </div>
        <!-- add more logos -->
    </div>
</div>

Use a two-column grid on .our-partners-logo-grid with a 1px gap. Here is the trick: set a lighter background color on the grid, and then give each logo wrapper the dark section background. As a result, the 1px gap shows the lighter color between the cells, which creates clean divider lines without any extra borders. Add a matching border on the outside so the grid is fully framed.

.our-partners-section .our-partners-logo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background-color: hsla(60, 4%, 21%, 1);
    border: 1px solid hsla(60, 4%, 21%, 1);
}
.our-partners-section .logo-wrapper {
    padding: clamp(1.75rem, calc(1rem + 2.78vw), 3.5rem) 1.625rem;
    background-color: hsla(60, 3%, 8%, 1);
}

Last, set a max width of 100% on the images so they never overflow their cell. Then use the min() function on the max height, so the logos stay small on narrow screens and never get bigger than 1.75rem.

.our-partners-section .logo-wrapper img {
    max-width: 100%;
    max-height: min(6vw, 1.75rem);
}

Output:

The company
we keep.

Trusted by teams building the products people use every day.

our partners
our partners
our partners
our partners
our partners
our partners


Final Output Code for Our Partners Section Design:

HTML

<section class="our-partners-section">
    <div class="section-container">
        <div class="our-partners-grid">
            <div class="our-partners-left">
                <p class="section-label">Built with the best</p>
                <h2>The company <br>
                    we keep<span>.</span></h2>
                <p>Trusted by teams building the products people
                    use every day.</p>
            </div>
            <div class="our-partners-right">
                <div class="our-partners-logo-grid">
                    <div class="logo-wrapper">
                        <img src="Northstar.png" alt="">
                    </div>
                    <div class="logo-wrapper">
                        <img src="Kinetic.png" alt="">
                    </div>
                    <div class="logo-wrapper">
                        <img src="Form.png" alt="">
                    </div>
                    <div class="logo-wrapper">
                        <img src="Lumen.png" alt="">
                    </div>
                    <div class="logo-wrapper">
                        <img src="Arcade.png" alt="">
                    </div>
                    <div class="logo-wrapper">
                        <img src="Vertex.png" alt="">
                    </div>
                </div>
            </div>
        </div>
    </div>
</section>

CSS

* {
    margin: 0;
    box-sizing: border-box;
}
body {
    font-family: "Manrope", sans-serif;
}
.our-partners-section {
    padding: clamp(5rem, calc(1rem + 10vw), 10rem) 5%;
    background-color: hsla(60, 3%, 8%, 1);
    color: hsla(45, 29%, 95%, 1);
}
.our-partners-section .section-container {
    max-width: 90rem;
    margin-inline: auto;
}
.our-partners-section .our-partners-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    row-gap: 4rem;
}
@media screen and (max-width: 992px) {
    .our-partners-section .our-partners-grid {
        grid-template-columns: 1fr;
    }
}
.our-partners-section .our-partners-left {
    align-content: center;
}
.our-partners-section .section-label {
    font-weight: 600;
    font-size: .75rem;
    line-height: 1.4;
    letter-spacing: 2.09px;
    text-transform: uppercase;
}
.our-partners-section .our-partners-left h2 {
    font-weight: 500;
    font-size: clamp(3.5rem, calc(1rem + 6vw), 5.5rem);
    line-height: .95;
    letter-spacing: -0.06em;
    max-width: 35rem;
    margin-block: 1.25rem 1.875rem;
}
.our-partners-section .our-partners-left h2 span {
    color: hsla(79, 100%, 66%, 1);
}
.our-partners-section .our-partners-left p:last-child {
    font-size: 1rem;
    line-height: 1.5;
    color: hsla(53, 4%, 60%, 1);
    max-width: 21.75rem;
}
.our-partners-section .our-partners-logo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background-color: hsla(60, 4%, 21%, 1);
    border: 1px solid hsla(60, 4%, 21%, 1);
}
.our-partners-section .logo-wrapper {
    padding: clamp(1.75rem, calc(1rem + 2.78vw), 3.5rem) 1.625rem;
    background-color: hsla(60, 3%, 8%, 1);
}
.our-partners-section .logo-wrapper img {
    max-width: 100%;
    max-height: min(6vw, 1.75rem);
}

If you have any doubts or stuck somewhere, you can reach out through Coding Yaar's Discord server.

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Most Voted
Newest Oldest
0
Would love your thoughts, please comment.x
()
x