I tried all kinds of code, both in my CSS file, my theme file.
The image right after the banner, where it says ‘Phulkari’ has been put there using custom HTML code since it involves an image map. I want to remove padding from only left and right, not top and bottom. How do I remove the padding and margin around this image? Because of this, my image map is also not working right.
I understand that you want to remove the margin or padding in the image but if you remove it, the image will not align on the center. What I do i change the width and max width, so the image will same alignment on the product below.
From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
Find the theme that you edit and click on “Actions” and then “Edit code”.
In the “Assets” folder, click oheme.scss.liquid" or “styles.scss.liquid” file, depending on which file your theme uses to store its CSS styles. (better you put in the theme.scss folder since it’s a header).
At the bottom of the file, add the following CSS code:
I’ve actually run into another problem now, it’s made my entire site full width so a lot of the elements that I had added through custom HTML are too wide now. Is there any way to make only a specific element full width?
Thats wierd maybe there is another selector involve when you put in the css file.. Also it hard to solve the problem when you just using the inspect tools.