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
11061 1364 1745

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;}
}
To build shopify pages use PAGEFLY | Want authentic views on your video? Contact me - suyash.patankar@gmail.com

View solution in original post

Replies 6 (6)

suyash1
Shopify Partner
11061 1364 1745

@Levike98 - can you please share your website link?

To build shopify pages use PAGEFLY | Want authentic views on your video? Contact me - suyash.patankar@gmail.com
Levike98
New Member
4 0 0
suyash1
Shopify Partner
11061 1364 1745

@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;}
}

 

To build shopify pages use PAGEFLY | Want authentic views on your video? Contact me - suyash.patankar@gmail.com
Levike98
New Member
4 0 0

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

suyash1
Shopify Partner
11061 1364 1745

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;}
}
To build shopify pages use PAGEFLY | Want authentic views on your video? Contact me - suyash.patankar@gmail.com
Levike98
New Member
4 0 0

Thanks! worked 🙂