Mobile header margin problem in Dawn theme

Solved

Mobile header margin problem in Dawn theme

Levike98
New Member
4 0 0

Hi, I left centered my logo, but on mobile view its not fully goes to the left like the "CART" icon on the right. And no, there isnt any white space on the logo. Is there anyone who can help solving this issue? Frame 51 (2).png

Accepted Solution (1)
suyash1
Shopify Partner
10498 1293 1657

This is an accepted solution.

@Levike98  add !important to it, so it becomes

 

@media screen and (max-width: 749px) {
.header{padding-left: 0 !important; padding-right: 10px !important;}
}
Support me | To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.

View solution in original post

Replies 6 (6)

suyash1
Shopify Partner
10498 1293 1657

@Levike98 - can you please share your website link?

Support me | To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
Levike98
New Member
4 0 0
suyash1
Shopify Partner
10498 1293 1657

@Levike98 - please add this css to the very end of your base.css file and check,
Shopify Admin -> Online Store ->Theme -> Edit code -> base.css

 

adjust numbers as per the need

 

@media screen and (max-width: 749px) {
.header{padding-left: 0; padding-right: 10px;}
}

 

Support me | To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
Levike98
New Member
4 0 0

Still the same 😕 Its so annoying, cuz the margin is fine in the web view.

suyash1
Shopify Partner
10498 1293 1657

This is an accepted solution.

@Levike98  add !important to it, so it becomes

 

@media screen and (max-width: 749px) {
.header{padding-left: 0 !important; padding-right: 10px !important;}
}
Support me | To build shopify pages use PAGEFLY | Contact me - suyash.patankar@gmail.com , My timezone is GMT+5:30.
Levike98
New Member
4 0 0

Thanks! worked 🙂