Image Element
The Image element displays images in your popup. Use it for product photos, graphics, illustrations, and visual content.
Overview
| Property | Value |
|---|---|
| Element Type | image |
| Can Contain Children | No |
| Supports Links | Yes |
Use Cases
- Product images
- Hero graphics
- Illustrations and icons
- Promotional banners
- Logo display
- Background accents
Content Settings
Image Source
Set the image URL or upload an image:
| Method | Description |
|---|---|
| URL | External image URL |
| Upload | Upload from your computer |
| Media Library | Select from uploaded images |
Supported formats:
- JPEG / JPG
- PNG
- GIF
- WebP
- SVG
Alt Text
Alternative text for accessibility and SEO:
Product photo showing the XBuilder interface
Always provide meaningful alt text. If the image is decorative, use empty alt text (alt="").
Image Link
Make the image clickable:
| Property | Description |
|---|---|
| URL | Link destination |
| Target | Same window or new window |
Size Settings
Width
Control image width:
| Option | Description |
|---|---|
| Auto | Natural image width |
| Full | 100% container width |
| Fixed | Specific pixel value |
| Percentage | Percentage of container |
Height
Control image height:
| Option | Description |
|---|---|
| Auto | Maintain aspect ratio |
| Fixed | Specific pixel value |
Max Width
Set maximum width to prevent oversizing:
Max Width: 400px
Object Fit
How the image fits its container:
| Option | Description |
|---|---|
| Contain | Fit within container, maintain ratio |
| Cover | Fill container, may crop |
| Fill | Stretch to fill (may distort) |
| None | Natural size |
Object Position
Position when using cover/contain:
| Option | Description |
|---|---|
| Center | Center the image |
| Top | Align to top |
| Bottom | Align to bottom |
| Left | Align to left |
| Right | Align to right |
Style Settings
Border Radius
Round the image corners:
| Value | Result |
|---|---|
| 0px | Square corners |
| 8px | Rounded corners |
| 50% | Circular (for square images) |
| 9999px | Maximum rounding |
Border
Add a border around the image:
| Property | Description |
|---|---|
| Width | Border thickness |
| Color | Border color |
| Style | Solid, dashed, dotted |
Shadow
Add depth with box shadow:
X: 0px
Y: 4px
Blur: 12px
Color: rgba(0,0,0,0.15)
Opacity
Control image transparency:
1— Fully visible0.5— 50% transparent0— Invisible
CSS Filters
Apply visual filters:
| Filter | Description |
|---|---|
| Blur | Blur the image |
| Brightness | Adjust brightness |
| Contrast | Adjust contrast |
| Grayscale | Convert to grayscale |
| Saturate | Adjust saturation |
| Sepia | Apply sepia tone |
Layout Settings
Alignment
Position the image horizontally:
| Option | Description |
|---|---|
| Left | Align to left |
| Center | Center horizontally |
| Right | Align to right |
Margin
Space around the image.
Padding
Space inside the image container (if using background).
Responsive Settings
Device-Specific Images
Show different images per device:
| Device | Use Case |
|---|---|
| Desktop | High-resolution image |
| Tablet | Medium-resolution image |
| Mobile | Smaller, optimized image |
Hide on Device
Hide the image on specific devices using visibility settings.
Responsive Sizing
Set different sizes per device:
Desktop: 400px width
Tablet: 300px width
Mobile: 100% width
Advanced Settings
HTML ID
Custom ID for CSS targeting.
CSS Classes
Add custom classes.
Loading
Control image loading behavior:
| Option | Description |
|---|---|
| Lazy | Load when visible |
| Eager | Load immediately |
Examples
Hero Image
Settings:
- Width: 100%
- Max Width: 500px
- Border Radius: 12px
- Alignment: Center
- Shadow: 0 4px 20px rgba(0,0,0,0.1)
Product Thumbnail
Settings:
- Width: 150px
- Height: 150px
- Object Fit: Cover
- Border Radius: 8px
- Border: 1px solid #e2e8f0
Circular Avatar
Settings:
- Width: 80px
- Height: 80px
- Border Radius: 50%
- Object Fit: Cover
- Border: 3px solid #ffffff
- Shadow: 0 2px 8px rgba(0,0,0,0.1)
Full-Width Banner
Settings:
- Width: 100%
- Height: 200px
- Object Fit: Cover
- Object Position: Center
- Border Radius: 0px
Best Practices
- Optimize images — Use compressed images for faster loading
- Use WebP — Modern format with better compression
- Provide alt text — For accessibility and SEO
- Responsive sizing — Adjust for different screens
- Appropriate quality — Balance quality and file size
- Lazy loading — For images below the fold
Image Optimization Tips
| Format | Best For |
|---|---|
| WebP | General use, best compression |
| JPEG | Photographs |
| PNG | Graphics with transparency |
| SVG | Icons, logos, illustrations |