Design Packs Docs
design-packs.comView on Shopify App Store
  • Get started here
  • Guides
    • Adding your first section
    • Adding your first template
    • General settings
    • Helpful hints & resources
    • Troubleshooting
    • Performance
  • Fundamentals
    • Section Settings
      • Setting Solid Background Colors instead of Gradients
      • Understanding Layout Settings: Size & Maximum Width
      • Understanding Inner Padding & Outer Margin Settings
      • Custom Classes Setting
      • Show Individual Variants Setting
      • Enable Metafield Detection Setting
        • Metafield ready sections
        • How to Use Metaobjects on Product template with Image with text - simple section
      • Metafield Badge Setting
      • Using Blog Tags Setting to Show Product-Specific Blog Posts
      • Add custom events when product is added to cart
      • Size Controls for Image & Video Blocks
      • Featured collection - blocks
        • How to use the Liquid Block in "Featured collection - blocks" Section to Add Custom Review Apps
        • How to use the Metafield Image Badge block
        • How to use the Metafield text block
      • Newsletter/Signup Form Block - Tags
      • How to add a Hidden Field in Contact Form
    • Sections
      • Banners & Sliders
      • Flourish
      • Icon & Logos
      • Image with text
      • Menus & Navigation
      • Blocks & Columns
      • Text Content
      • Products & Collections
      • Article sections
      • Galleries
      • Misc
      • Modal Popup
    • Templates
      • Regular Page
      • Lookbooks
      • Blogs
      • Blog Posts
      • Collection
      • Landing pages
    • Custom CSS
      • Basic CSS examples
      • Mobile CSS examples
      • Advanced Examples
    • Shopify expertise
      • Theme editor
      • Metafields
      • MetaObjects
    • How to Guides
      • How to jump/ link to another section on the SAME page
      • How to forward a contact form in Shopify to a different email with Gmail filters
      • How to create new page templates (and keep the original as a starting point)
      • Creating a New Product Template
      • How to set default article template for all blog posts
  • Use Cases
    • For Designers
    • For Developers
    • Agency Licenses
    • Affiliate Program
  • PRODUCT BLOCKS
    • Product Blocks
      • Image with text block
      • Connected products block
      • Variant descriptions block
      • Value icons block
      • Video block
      • Collapsible content block
      • Feature range block
  • Integrations
    • Theme Updater App
Powered by GitBook
On this page
  • 1. Percentage Size (%)
  • 2. Maximum Width (px)
  1. Fundamentals
  2. Section Settings

Size Controls for Image & Video Blocks

There are two settings that work together to control the size of your media (images or videos):

1. Percentage Size (%)

This percentage determines how much of the available space your media can use:

  • 100% allows the media to use all available space (up to the max-width)

  • 50% means the media will use half the available space

  • 10% means the media will use one-tenth of the available space

2. Maximum Width (px)

This sets the largest size your media can be, in pixels:

  • Enter a specific pixel value (e.g. 400) to control the exact size

  • Leave empty to allow the percentage to control sizing completely

How to Achieve Common Sizes

For a specific fixed size on all screens:

  1. Set Percentage Size to 100%

  2. Set Maximum Width to your desired size (e.g. 400px) This ensures your media will be exactly 400px wide on all screens where space allows

For responsive sizing:

  1. Set Percentage Size to your desired percentage (e.g. 85%)

  2. Set Maximum Width to prevent too-large sizes (e.g. 300px) Result: Media will be 85% of container width, unless that would exceed 300px, in which case it stays at 300px

Examples

Fixed size:

  • Percentage Size: 100%

  • Max Width: 40px Result: Media will always be 40px wide

Responsive with maximum size:

  • Percentage Size: 50%

  • Max Width: 300px Result: Media will be 50% of container width, but never larger than 300px

Large responsive:

  • Percentage Size: 80%

  • Max Width: (empty) Result: Media will always take up 80% of container width

Tips

  • For exact sizes, use 100% width and set your desired size as max-width

  • For responsive designs, use a percentage width and optionally set max-width to limit maximum size

  • Test your settings at different screen sizes

  • Remember: Images and videos will maintain their aspect ratio while scaling

PreviousAdd custom events when product is added to cartNextFeatured collection - blocks

Last updated 3 months ago