Search for products or services
Babybunting logo
Main banner alt text comes from here
Test Title
Big sale is on now

How to Resize Images using CSS Class in Baby Bunting Blogs

Image size and corresponding "class" tags

Image SizeCode to insert in <img> tag
Thumbnail size - max width: 150 pixelsclass="img-sz-thumbnail"
Medium size - max width: 300 pixelsclass="img-sz-md"
Large size - max width: 640 pixelsclass="img-sz-lg"
Extra Large size - max width: 1080 pixelsclass="img-sz-xl"
Full size (the original size of the uploaded image)class="img-sz-fulf"

How to Insert Class Tags?

  1. After uploading the image in the SEO editorial content, click the HTML view icon in the content editor

2023-12-15_10_51_13_html_view_selector.png

2. Insert the class tag within the <img> tag of the image that you want to resize

2023-12-15_10_50_37_-_class_in_use.png

Sample of class tag in use to resize images

Original Size (No class)

1. img-sz-thumbnail (max width is 150px)

2. img-sz-md (max width is 300px)

4. img-sz-lg (max width is 640px)

5. img-sz-xl (max width is 1080px)

5. img-sz-full (width is article’s/container’s width)

Back to blog posts
static prop image

Contactless Delivery

Australia Wide

static prop image

Contactless Click & Collect

Ready in under 3 hours

static prop image

Pay Your Way

Flexible payment options

static prop image

Easy Returns

Refund or Exchange

Visa LogoMastercard LogoAmex LogoPayPal LogoZip LogoAfterpay Logo