Dawn Theme - Adjust width of white login Container

.customer.login {
  background: white;
  border-radius: 20px;
  width: 100%;
}

.customer.login h1 {
  font-weight: bold;
}


I used this code to add a white container behind the login form. Now i would like to adjust the white container so that it like the container in the picture below. The width is already 100% and i dont understand how i can make it wider. Does anyone know how it is possible?

1 Like

Hi @Roxolot ,

Try this.

  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” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
  4. And Save.
.customer.login.section-template--19011406037325__main-padding {
    max-width: 90%;
}
form#customer_login {
    width: 50%;
    margin-left: 25%;
}
1 Like

That’s exactly how I wanted it. Thank you

1 Like

Your welcome. :blush:

@Made4uo-Ribe
I am trying to make the same adjustment for the register page and for the address page, but unfortunately it does not work there. Do you have any idea how I can adjust the background on these pages like in the example above? I have tried the following

customer.register.section-template--19011406102861__main-padding {
  max-width: 91.5% !important;
}

form#register_login {
  width: 75%;
  margin-left: 12.5%;
}

customer.addresses.section-template--19011406004557__main-padding {
  max-width: 91.5% !important;
}

form#adress_login {
    width: 75%;
    margin-left: 12.5%;
}

www.taskslider.de

PW: nonsense

1 Like

Hi, Im not sure if this pages you want to changes?

Try this one.

.customer.register.section-template--19011406102861__main-padding {
    max-width: 91.5%;
}
form#create_customer {
    width: 75%;
    margin-left: 12.5%;
}
.customer.addresses.section-template--19011406004557__main-padding {
    max-width: 91.5%;
}

This is the result.

1 Like

@Made4uo-Ribe

That was very helpful. Many thanks

Your welcome. :blush: