# Styles settings

<div data-full-width="true"><figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FETk3RTZrTHUxALnqCtTH%2FFoxEcom%20changelog%20%20%201250%20x%20200.png?alt=media&#x26;token=a72791be-b9fe-4806-8a28-f1592e470b10" alt=""><figcaption><p><a href="https://foxecom.com/pages/affiliate?utm_source=foxecom&#x26;utm_medium=help_center_foxify_styles_settings&#x26;utm_campaign=anchor-text&#x26;utm_term=explore_foxecom_affiliate_program_perks_now">Explore FoxEcom Affiliate program perks now</a> <span data-gb-custom-inline data-tag="emoji" data-code="2728">✨</span></p></figcaption></figure></div>

This article will walk you through common Foxify Styles options that you can find in most elements.

## Typography

In this dropdown, you can edit and customize the text-related settings of the element.&#x20;

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FX4GckIrR1PdaqHe2wKtT%2Fimage.png?alt=media&#x26;token=7c8105a3-7d46-4182-abe9-d60176bd64d3" alt=""><figcaption></figcaption></figure>

* Choose your preferable font from a variety of options:

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FUBBrTQXIYwB4EXYhqGvJ%2Fezgif.com-video-to-gif%20(25).gif?alt=media&#x26;token=fc530a6a-c2c1-466b-8523-523ead6e96e2" alt=""><figcaption></figcaption></figure>

* Adjust an element's font weight, color, size, line height, and text alignment with ease.
* Click **More settings** to set the text's letter spacing, transformation (uppercase, Title case, lowercase), style (regular/*italic*) and decoration.

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FyP4lN0ZOgF1PRwsXoThh%2Fezgif.com-video-to-gif%20(26).gif?alt=media&#x26;token=038e7cf9-f6e7-4c2e-880f-fe3ccb2f4933" alt=""><figcaption></figcaption></figure>

## Layout

Quickly fine-tune your content layout by selecting the option **Enable auto layout**.

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FWPBFo5AENVNPGSGTe5uY%2Fimage.png?alt=media&#x26;token=b6201247-7332-4d6b-9311-6f918bcd3f67" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FGk5VhckJw8pYsar7EctV%2Fezgif.com-gif-maker%20(1).gif?alt=media&#x26;token=a4721c06-f3dc-480b-801a-4dba3c30c237" alt=""><figcaption></figcaption></figure>

Use the **Wrap children** option to wrap to additional lines when they no longer fit on the initial line.&#x20;

* The element(s) that don't fit will wrap to the bottom-left in the parent element.

## Spacing

With Foxify, control of the element's margin and padding is easy.&#x20;

Margin and padding create spacing around your content and elemen.&#x20;

{% embed url="<https://youtu.be/BiWa8fKU9vA>" %}

Margins create extra space around the element, while padding pushes the content deeper inside the element border.

You can decide to use the same value for all four dimensions: top, right, bottom, and left, or adjust them separately.&#x20;

{% tabs %}
{% tab title="Spacing settings - Uniform values" %}

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FGPb2mkyHBEEOtCxF4A98%2Fimage.png?alt=media&#x26;token=f12c9890-26d6-43c2-bed2-723a47188211" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Spacing settings - Separate values" %}

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FwdsEYJkvMLuKxPJ9eKtz%2Fimage.png?alt=media&#x26;token=26a2de47-8fc8-4668-bb29-1c6464c3d204" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

You can also select the size unit you want to use: **px**, **rem**, or **em**. Want to know more about these measurement units? See this article:

{% content-ref url="../../faqs-and-troubleshooting/faqs/should-i-use-pixel-rem-or-em" %}
[should-i-use-pixel-rem-or-em](https://docs.foxecom.com/foxify-app/faqs-and-troubleshooting/faqs/should-i-use-pixel-rem-or-em)
{% endcontent-ref %}

## Sizing

In this setting, you can change the section width and height of the element.&#x20;

The recommended size for each element is already filled in the field.&#x20;

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FhfaSECiRQtJ01vblNmmU%2Fimage.png?alt=media&#x26;token=0a3334c5-b046-47c0-8f31-b2b6e60f5dfb" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
You can also click on the image and drag it to resize directly.&#x20;

![](https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FXbf00jY2GQvFqLa0pn4y%2F20240305_103726-ezgif.com-video-to-gif-converter.gif?alt=media\&token=5f38d8ca-8fc0-4e04-b008-bb2972f3c3cd)
{% endhint %}

If you decide on using dimensions to your liking, remember to double-check to make sure the new dimensions work out across different devices.&#x20;

To create a customized experience for shoppers, click on the device selector icon to set the dimensions on different screen sizes.

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2Fm8WmMveEaGEweeSiZlgg%2Fimage.png?alt=media&#x26;token=fce590b7-5ee4-486e-8407-8418a07e34d3" alt=""><figcaption></figcaption></figure>

The **More settings** button allows you to set the minimum and maximum values for the selected element width and height.

Similar to spacing, both **px**, **rem**, or **em** are available.

## Background

The **Background** section lets you change the element's background using a [color](#background-color) or an [image](#undefined).

### Background color&#x20;

* Choose from your predefined colors list in [Global styles](https://docs.foxecom.com/foxify-app/page-management/global-styles).

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FjepSGwBQKYRYK5gKMi3x%2Fimage.png?alt=media&#x26;token=34d7210c-ef21-4cab-b8e6-38d9fe1af073" alt=""><figcaption></figcaption></figure>

* Select a color from the color palette or input a [hex color code](https://htmlcolorcodes.com/).&#x20;

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FW9Ggw3qU2NomZRNNwe3x%2Fimage.png?alt=media&#x26;token=9e6b0bbd-6535-4b13-a6c6-6ddc1dc43277" alt=""><figcaption></figcaption></figure>

### Background image

Click on **Select image** to use an image as a background. You can select one from existing images (in your [Shopify Files](https://domain.myshopify.com/admin/settings/files)), free images, or upload a new image.&#x20;

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FHCda9Xm9w3ytKDmqz8Yq%2Fimage.png?alt=media&#x26;token=6ccd8343-7e8d-42fe-8990-f31d52e2515c" alt=""><figcaption></figcaption></figure>

In **More settings**, you can find more options to adjust different properties of the background:

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2F4kTL5nlbuQFG0Fu3nW1t%2Fimage.png?alt=media&#x26;token=825c3e27-0a77-4fb6-aa1d-5ddce9518e27" alt=""><figcaption></figcaption></figure>

#### Background attachment

The background-attachment property in CSS sets whether a background image's position is fixed within the [viewport](https://developer.mozilla.org/en-US/docs/Glossary/Viewport), or scrolls with its containing block.

**Fixed**: The background image stays fixed no matter what.

**Scroll**: The background image scrolls with the main view, but stays fixed inside the local view.

**Local**: The background images scroll with the element's content.

{% hint style="info" %}
Still not sure how the three values work? Check out this [demo](https://css-tricks.com/almanac/properties/b/background-attachment/).
{% endhint %}

#### Background size

The background-size CSS property sets the size of the element's background image. The image can be left to its natural size, stretched, or constrained to fit the available space.&#x20;

**Auto:** Default value. The background image is displayed in its original size.

**Contain**: Resize the background image to make sure the image is fully visible.&#x20;

**Cover**: Resize the background image to cover the entire container, even if it has to stretch the image or cut a little bit off one of the edges.

{% hint style="info" %}
Spaces not covered by a background image are filled with the background-color property, and the background color will be visible behind background images that have transparency.
{% endhint %}

For example: the image we're using is 1000 x 512 px, jpg. format.&#x20;

{% tabs %}
{% tab title="Background size: Auto" %}

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2Fid2xVhCOC2RmdcGL7CX5%2Fimage.png?alt=media&#x26;token=0795de91-94b2-48fd-89c2-056dcaacaf92" alt="An example of Background size: Auto"><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Background size: Contain" %}

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FpmEbqYwg3oNIEJ4MXs90%2Fimage.png?alt=media&#x26;token=440156d5-5194-4782-a12b-bad6b2344d24" alt="An example of Background size: Auto"><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Background size: Cover" %}

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FyaB7M2fAI7EImncMptid%2Fimage.png?alt=media&#x26;token=8fe0139f-d5a0-4ea2-a9a2-dc4ed24ba483" alt="An example of Background size: Auto"><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

#### Background repeat&#x20;

The background-repeat CSS property sets how background images are repeated. A background image can be repeated along the horizontal and vertical axes, or not repeated at all.

This setting works with **Auto** and **Contain** background size.&#x20;

* Repeat: tile the image in both directions
* Repeat x: tile the image horizontally
* Repeat y: tile the image vertically&#x20;

By default, the background image is set as no repeat.

For example: the image we're using is 250 x 200 px, jpg. format.

{% tabs %}
{% tab title="Background repeat: Repeat" %}

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2F8pEjw3QnQhlvXeM0BGTo%2Fimage.png?alt=media&#x26;token=e6353351-8ecc-4ff0-b8e0-bcf4ef322024" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Background repeat: Repeat x" %}

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FcxOp5BHkKBCLwwskJtFP%2Fimage.png?alt=media&#x26;token=30a1d7a4-c82b-4868-8736-083d7c4ffc12" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Background repeat: Repeat y" %}

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FiqfKH77zPqFlryiwBRDB%2Fimage.png?alt=media&#x26;token=9587692d-4f41-4526-a13f-9adefc3266e0" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

#### Background position

This setting allows you to move your background image around within its container.

There are 9 options to place your background image:

* Top left/ top center/ top right
* Middle left/ middle center/ middle right
* Bottom left/ bottom center/ bottom right&#x20;

## Borders

You can add and adjust the element's border in Styles settings.

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FPoEs3quljZrYDlZ8L5sO%2Fimage.png?alt=media&#x26;token=4e5f700c-cc4f-4d48-a5f0-5e2fb0e0dd7a" alt=""><figcaption></figcaption></figure>

**Border style:** Choose from 3 available styles: **Solid line**, **Dotted line**, and **Dashed line**. By default, an element is set as no border.

{% tabs %}
{% tab title="Solid line" %}

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FUY6PsWolEPovzVrDyBPH%2Fimage.png?alt=media&#x26;token=3167b771-c492-4365-aeb9-d75519b6f8d5" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Dotted line" %}

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2F5ANeYOSh2gViBWTT1hiw%2Fimage.png?alt=media&#x26;token=3047db0b-f808-43f6-b84f-971f7c8e8673" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="Dashed line" %}

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FrJn37CgeXTLgzc4t1C92%2Fimage.png?alt=media&#x26;token=883eaaa4-4ee6-40bf-a107-d2221bb8788c" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

**Border color**

* Select from predefined [global styles colors](https://docs.foxecom.com/foxify-app/page-management/global-styles#colors).
* Choose from the color palette or use a hex color code.

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FNEaZ5MglQHXRbBuqpxM3%2Fimage.png?alt=media&#x26;token=134b2021-1d84-48d1-b628-4a8cf548374b" alt=""><figcaption></figcaption></figure>

This section also allows you to control the width of the border and its roundness using **Border width** and **Border radius** settings.

## Effects

This section is for modifying the opacity of the whole section. Simply tweak the toggle to adjust it.

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FX8WxQlYK7FWYo69Qk5Wl%2Fimage.png?alt=media&#x26;token=2400cc9d-0419-4896-be61-f282ecccf209" alt=""><figcaption></figcaption></figure>

## Custom CSS

Changes you made in Styles settings will be shown here.&#x20;

You can edit the CSS code in **Custom CSS** and the changes will be reflected in the settings.&#x20;

Here is one example:&#x20;

<figure><img src="https://1749964694-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FfgpgvtRaQLc36GYyIktZ%2Fuploads%2FoxHz5aTSNVLEcX3mcc4z%2Fimage.png?alt=media&#x26;token=fffa23ec-e37e-4f54-9129-8b613bdcc61a" alt=""><figcaption></figcaption></figure>
