---
description: Create multiple versions of the same page at different sizes
---

# Export Artboards and show by size (media query)

Your page may be viewed by people using many different size browsers and devices. The most common devices are phones, tablets and desktop computers. You can create multiple versions of the same page in Adobe XD for multiple devices and you can automatically show the appropriate version to the user with the "Show by Size (media query)" export option.

The video below shows 3 different versions of a common home page.&#x20;

{% embed url="https://youtu.be/uYVvZbzQTD0" %}

Select each version and then open the Export Artboard dialog.&#x20;

#### How does it work

The Show by size option uses [Media Queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries) under the hood. A media query is a set of options that are applied when certain conditions are met. For us that means that an artboard is made visible when its minimum width is available.&#x20;

For example, if you have a 3 artboards that are 100px, 500px and 800px wide the smallest artboard will be visible until the browser window is 500px wide.&#x20;

The 500px artboard will be shown from 500px to 800px (800px is the size of the next artboard).&#x20;

From 800px and on the last artboard will be shown. See video.&#x20;

#### How to show by size

Basically, you create multiple versions of the same page using multiple artboards. Then select all multiple versions of the artboard and change the export option.&#x20;

* Create an artboard and make 3 versions of it: \
  small, medium and large or phone, tablet and desktop. \
  Make sure they each have different widths. \
  Name them something like "Home Page (phone)", "Home Page (tablet)" and "Home Page (desktop)".&#x20;
* Select all versions of the artboard.&#x20;
* Open the Export Artboard dialog and open the advanced screen
* In Export row select "Selected Artboards"&#x20;
* Next to that select the option "Single page (show by size with media query)"
* Click the Export button

![](https://735683391-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LWpp_0PwLnj_AXGL2u7%2F-LtAWy7NRwDZpPP9y74E%2F-LtAYC2WTsEVvlHa_lYb%2Fimage.png?alt=media\&token=5672f8fb-f54e-49bf-8432-c013bff193c4)

Open the page in a browser. When you resize the browser it should show you different versions.&#x20;

#### Multiple views with multiple sizes

You can have multiple pages / views with multiple sizes of each view.&#x20;

Basically, you create multiple views and then multiple sizes of each view. You then give them a view name, like "products" or "about", in hyperlink state field. You create links to show those views by using the view name. Then you select all the artboards at all of the sizes and export all of them to the same page using the Show by Size option.&#x20;

Follow the following video guide for a demonstration using the UI Kit by Adobe.&#x20;

{% embed url="https://www.youtube.com/watch?v=mK9fonyLyY4" %}

{% hint style="info" %}
**FYI: You don't have to create responsive web pages.** \
\
You can but you don't have to. There is community discussion on this as recommended practice. \
\
Phones, tablets and desktop browsers all allow you to zoom in or out on the page you're viewing. They also have double tap options that will zoom into a section of the page you double tap.&#x20;

If your mobile user experience will be worse with a mobile site then reconsider making it at all.&#x20;

You can also use [scaling](../export-artboard-dialog/scale-to-fit) options to scale the page to fit. \
\
Usually, it depends on the project. Usually you ask yourself questions like:&#x20;

* Who is the target audience of my project? Mobile, tablet or desktop users or all 3 of them?&#x20;
* Will the experience be better or worse with a mobile version of this project?&#x20;
* Should I make multiple fixed sized versions of the same page or make a single responsive version, showing or hiding elements?&#x20;
* Can I go back and add responsive versions later as I go or if needed or create them now?&#x20;
{% endhint %}

There are examples of these already created in the [examples package](../example-packages) and [examples page](https://github.com/velara3/xd-examples/tree/master/web-export/examples).&#x20;

{% embed url="https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries" %}
