• File: relative-dimensions.md
  • Full Path: /home/masbinta/public_html/core/vendor/league/glide/docs/1.0/api/relative-dimensions.md
  • File size: 494 bytes
  • MIME-type: text/plain
  • Charset: utf-8
---
layout: default
title: Relative dimensions
---

# Relative dimensions

Relative dimensions allow you to specify a width or height value as a percentage of the main image. This is helpful for features like watermarks and borders.

To use a relative dimension, simply provide a percentage as a number (between `0` and `100`), followed by a `w` (width) or `h` (height). For example, `5w` represents 5% of the width of the main image.

~~~ html
<img src="kayaks.jpg?mark=logo.png&markw=5w">
~~~