Title: Homepage different widths
Last modified: April 16, 2020

---

# Homepage different widths

 *  Resolved [ndjworldnews](https://wordpress.org/support/users/ndjworldnews/)
 * (@ndjworldnews)
 * [6 years ago](https://wordpress.org/support/topic/homepage-different-widths/)
 * Hi;
    How can I set parts of the storefront homeage without left/right margins
   or left/right padding and leave other parts to their default settings?
 * I am not using the full-width layout but the block view. there are left/right
   margins/padding settings that seem to be about 20 to 25px wide. I checked CSS
   for container, col-full, and content but am not able to set left/right margins/
   padding to zero for some images I wish to display.
 * example: top banner (image) i wish to display below header but above products.
   header and products are both offset with margins or padding but I want the top
   banner to display for the full width of the homepage width (no left/right margin).
   Hope I am making sense. How can I do this?
 * BTW margin:0,auto doesn’t work. margin-left:0, margin-right:0 doesn’t work either.
 * Much obliged.
 * Lode
    -  This topic was modified 6 years ago by [ndjworldnews](https://wordpress.org/support/users/ndjworldnews/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhomepage-different-widths%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Senff – a11n](https://wordpress.org/support/users/senff/)
 * (@senff)
 * [6 years ago](https://wordpress.org/support/topic/homepage-different-widths/#post-12688765)
 * I’m not entirely clear on which margins you’re referring to exactly. When you
   look at this screenshot, do you want to remove the space I’ve marked with 1, 
   or the one marked with 2? Or both?
 * ![](https://cdn-std.droplr.net/files/acc_646767/rAUdfS)
 *  Thread Starter [ndjworldnews](https://wordpress.org/support/users/ndjworldnews/)
 * (@ndjworldnews)
 * [6 years ago](https://wordpress.org/support/topic/homepage-different-widths/#post-12692190)
 * Hello
 * Thanks for taking the time and the trouble to attend to my needs. I would like
   to remove the margins/paddings for (1) but only for that banner.
 * Thanks a bunch.
 * Lode
 *  [Senff – a11n](https://wordpress.org/support/users/senff/)
 * (@senff)
 * [6 years ago](https://wordpress.org/support/topic/homepage-different-widths/#post-12704385)
 * This can be done with some custom CSS code:
 * Go into your site’s admin Dashboard and select **Appearance → Customize → Additional
   CSS**. In the CSS textbox on the left, add the following code:
 *     ```
       .home .entry-content > div .stop:nth-of-type(2) {
         margin-left: -2.617924em;
         margin-right: -2.617924em;
       }
       ```
   
 * Sselect “Save Changes” from the top, and your changes will be applied to your
   site.
 *  Thread Starter [ndjworldnews](https://wordpress.org/support/users/ndjworldnews/)
 * (@ndjworldnews)
 * [6 years ago](https://wordpress.org/support/topic/homepage-different-widths/#post-12705120)
 * Well by golly that certainly worked just dandy.
 * Thank you so very much.
 * Lode

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Homepage different widths’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/storefront/4.6.2/screenshot.png)
 * Storefront
 * [Support Threads](https://wordpress.org/support/theme/storefront/)
 * [Active Topics](https://wordpress.org/support/theme/storefront/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/storefront/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/storefront/reviews/)

## Tags

 * [homepage](https://wordpress.org/support/topic-tag/homepage/)

 * 4 replies
 * 2 participants
 * Last reply from: [ndjworldnews](https://wordpress.org/support/users/ndjworldnews/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/homepage-different-widths/#post-12705120)
 * Status: resolved