Add Rounded Corners to Video Hero

Topic summary

A user wanted to add rounded corners to their homepage video hero section on a Stiletto theme Shopify store. The video was displaying full-screen without any border radius or margins.

Initial Request:

  • Transform full-screen video hero into a contained element with rounded corners
  • Align the video edges with header elements (logo on left, icons on right)
  • Apply styling to both mobile and desktop views

Solution Provided:
Custom CSS code targeting .video-hero .video-hero__inner with:

  • Responsive media queries for mobile (max-width: 768px) and desktop (min-width: 769px)
  • Horizontal margins: 20px (mobile), 40px (desktop)
  • Vertical margins: 15px
  • Border-radius: 60px

Follow-up Request:
The user then asked for the same styling on the announcement banner to maintain visual consistency.

Additional Solution:
CSS targeting .shopify-section-group-header-group.announcement-bar__outer-wrapper with similar responsive approach but smaller border-radius (10px).

Both solutions required adding code to the theme’s CSS file (theme.css or based.css). The issue was successfully resolved with the user confirming the results were “absolutely perfect.”

Summarized with AI on November 2. AI used: claude-sonnet-4-5-20250929.

Hello!

I want to add rounded corners to my homepage’s video hero section.

This is how it looks now:

  • Mobile:

Desktop:

As you can see, they are in full screen mode and have no corners.

This is how I want them to look like:

(the red lines show the natural limits of the website, aligned on the left with the logo and on the right with the last icon inside the header)

  • Mobile:

  • Desktop:

My theme is Stiletto and my website is: https://6oi2c07cipuh22y6-60150284501.shopifypreview.com

I would really appreciate some help :raising_hands:

Hi @martujv

  1. Go to Online Store → Theme → Edit code.
  2. Open your theme.css / based.css file and paste the code in the bottom of the file.
.video-hero .video-hero__inner {
    margin: 15px 0 !important;
    border-radius: 60px !important;
}

Result:

If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
Use our Big Bulk Discount app to boost your sales! :rocket: (https://apps.shopify.com/big-bulk-discount). Easy to set up and perfect for attracting more customers with bulk discounts.
Try it now and watch your revenue grow!

1 Like

Hi, but this way the video hero is still full screen, I would like to have the limits in the same place as I marked them with the red lines in the images.

@martujv

  1. Go to Online Store → Theme → Edit code.
  2. Open your theme.css / based.css file and paste the code in the bottom of the file.
@media(max-width:768px){
.video-hero .video-hero__inner {
    margin: 15px 20px !important;
    border-radius: 60px !important;
}
}
@media(min-width:769px){
.video-hero .video-hero__inner {
    margin: 15px 40px !important;
    border-radius: 60px !important;
}
}

If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
Use our Big Bulk Discount app to boost your sales! :rocket: (https://apps.shopify.com/big-bulk-discount). Easy to set up and perfect for attracting more customers with bulk discounts.
Try it now and watch your revenue grow!

1 Like

That’s absolutely perfect! Thanks a lot! Do you know how to do the same with the announcement banner, so that they look the same way?

@martujv

  1. Go to Online Store → Theme → Edit code.
  2. Open your theme.css / based.css file and paste the code in the bottom of the file.
@media(max-width:768px){
.shopify-section-group-header-group.announcement-bar__outer-wrapper {
    border-radius: 10px !important;
    margin: 0px 40px !important;
}
}
@media(min-width:769px){
.shopify-section-group-header-group.announcement-bar__outer-wrapper {
    border-radius: 10px !important;
    margin: 0px 20px !important;
}
}

If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!
Use our Big Bulk Discount app to boost your sales! :rocket: (https://apps.shopify.com/big-bulk-discount). Easy to set up and perfect for attracting more customers with bulk discounts.
Try it now and watch your revenue grow!

1 Like

Thanks!