Need help with styling this section to match my header and footer on mobile

Solved

Need help with styling this section to match my header and footer on mobile

insideyagolf
Tourist
11 0 1

I am creating a bento grid layout and I would like my contact form to have the same spacing as the rest of my content on mobile. 

 

www.insideyagolf.com

IMG_1136.PNG

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
9567 2279 2828

This is an accepted solution.

Hi @insideyagolf 

TRy this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

@media only screen and (max-width: 749px){
.contact.page-width.page-width--narrow.section-template--18057311322252__form-padding {
     margin: 0 16px;   
}
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1734537949125.png

     

 

 Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

View solution in original post

Replies 3 (3)

Made4uo-Ribe
Shopify Partner
9567 2279 2828

This is an accepted solution.

Hi @insideyagolf 

TRy this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

@media only screen and (max-width: 749px){
.contact.page-width.page-width--narrow.section-template--18057311322252__form-padding {
     margin: 0 16px;   
}
}

 

  • And Save.
  • Result:
  • Made4uoRibe_0-1734537949125.png

     

 

 Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

ecoboostify
Shopify Partner
35 8 6

Hope this guide is helpful to you!

 

  1. Log in to Shopify > Online Store > Customize (Screenshot).
  2. Go to Theme Settings > Custom CSS (Screenshot).
  3. Copy the CSS code below, paste it into the Custom CSS box, and click Save.

 

.contact__fields {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 2rem;
}

 

 

Result:

ecoboostify_0-1734538483459.png

 

It's truly fulfilling to help someone.
If this fixed your issue, Likes and Accept as Solution are highly appreciated.
EcoBoostify Shoppable Reel UGC - Easily Shoppable Videos+Reels, Inactive Tab Messages, Favicon Cart Counts, and more optimize store

Made4uo-Ribe
Shopify Partner
9567 2279 2828

Welcome! Would you mind hitting 'like' as well? Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.