First 100 spots 50% lifetime discount. Start free.

ClickWhale

Styling elements with the Display settings panel

Display settings control how an element looks: its background, borders, spacing, size and text. They apply to whatever you have selected.

WhereThe Display settings tab (the paint icon) in the editor's right column
Takes effectAfter you publish (how)

Every setting has an on/off switch. Nothing you haven't switched on is applied, which is why a brand-new element inherits its look from elsewhere instead of being blank. Turning a switch on is what says "this element decides this for itself".

The settings

Not all of them appear for every element. The panel shows what applies to what you selected.

SettingControls
BackgroundColour, image, gradient, image size, repeat, horizontal and vertical position, clipping
BorderWidth, style and colour, per side
Border radiusRounded corners
ShadowDrop shadow
TextFont, size, line height, weight, italic, underline, alignment, colour
Content alignmentDirection and alignment of the children inside this element
Space around content - paddingSpace inside the element
Space around element - marginSpace outside the element
Space between elements - gapSpace between the element's children
WidthHow wide the element is
Minimal heightA floor on the element's height
Number of items per rowFor galleries and overviews
Fixed positionPins an element in place, e.g. a sticky header
Grid positionWhere a cell sits in a grid
Grid heightThe height of a grid

Sizes and units

Anywhere you type a size, there's a unit dropdown beside it:

UnitMeansGood for
pxPixels, a fixed sizeBorders, small precise spacing
%Percentage of the containing elementWidths that should adapt
emRelative to the element's own font sizePadding around text that scales with it
vhPercentage of the screen heightA hero band that fills the screen
vwPercentage of the screen widthRarely, usually % is what you want

If in doubt: px for anything small and fixed, % for widths, vh for full-screen bands.

Colours

Clicking a colour opens the palette, which has two halves: Light mode and Dark mode. If your website has dark mode switched on, you pick both. If it doesn't, only the light half matters.

Pick colours from the picker's own tabs rather than typing values, and know which tab you're in. The palette tab hands out remembered values: the colour is copied into the element, so changing the palette afterwards leaves this element alone. The functions tab hands out a reference: change that colour and every element pointing at it follows. Both are set up under Manage → Design → Colors. See The colour palette.

Hover and active

Some elements (buttons, links, form fields, menu items, article cards) have three states:

StateWhen it applies
DefaultNormally
HoverWhile the mouse is over it
ActiveWhile it's being clicked, or when it's the current item

Hover and active build on default. You only set what changes. Give a button a hover background colour and it keeps its default padding, borders and text settings. You don't restate them, and if you later change the default padding, hover follows automatically.

A note for phones: there is no hover on a touchscreen. Hover styling is a nice touch, never the only way to show something important.

Styling one element or all of them

Before you spend time styling something, ask whether this styling is going to repeat.

  • It repeats: every button, every heading, every article card. Use a display set: style it once, attach it everywhere, change it in one place forever after. Display sets live under Manage → Design → Elements. See Display sets.
  • It's specific to this spot: the padding on this one section, the width of this one column. Style it directly here.

The dropdown at the top of the panel, Display this element as…, is where you attach a display set. Anything you then set directly on the element wins over the set, for that element only.

Every setting is per screen size

The screen-size buttons in the toolbar decide which version of a setting you're editing. See Making your website work on phones.

Set everything at all first, then fix only what breaks at smaller sizes.

Common issues

The setting I want isn't in the panel.

It doesn't apply to this element. A Text element has no gap; an Image has no text settings. Check whether you should have selected the element's parent instead. Use the breadcrumb.

I set it and nothing happened.

Check the setting's on/off switch. An option that's off is not applied, whatever value is in it.

It changed on desktop but not on mobile

: or the reverse. You set it at one screen size. Switch to all and set it there.

I changed the display set and this one element didn't follow.

That element has its own value set directly, which wins over the set. Switch that option off to let the set through again.

What will you create today?

ClickWhale is a website management system created by Ikabus