CSS Properties

CSS properties are all the options you can use to change an element's design inside your WeWeb app.

They're available on the right sidebar, under the styling tab.

Let's go over each of them.

Specific

This section is a shortcut to find the most used CSS properties for a given element. It's different for every element.

Here are the available CSS properties in this section (all elements included):

Text - {lang}

This is where you can bind the text displayed to a variable, typically, when you want to display some text that comes from a plugin or 3rd-party API.

You'll have to bind it for every language that's currently activated on this page.

Typography

This option is useful when you want to standardise text styles in your app. Here, you can select a text type (for example: heading, subtitle, etc) that you created in the typography section of your app.

Size

To set the element text's size (in px, em or rem). Equivalent to CSS' font-sizeopen in new window.

Font family

To set the font of the text element. Equivalent to CSS' font-familyopen in new window.

Font weight

To set the weight of the text element (for example: bold, semibold, etc). Equivalent to CSS' font-weightopen in new window.

Line height

To set the height between two lines of text in the element. Equivalent to CSS' line-heightopen in new window.

Alignment

To align the text right, center, left of justified. Equivalent to CSS' text-justifiedopen in new window.

Text color

To set the color of the text. Equivalent to CSS' coloropen in new window.

Text decoration

To set the decoration of the text (for example: underline, overline, etc). Equivalent to CSS' text-decorationopen in new window.

No-wrap

To prevent the text from wrapping to the next line. Equivalent to CSS' white-spaceopen in new window.

Character case

To set the case of the text (for example: uppercase, lowercase, etc). Equivalent to CSS' text-transformopen in new window.

Text shadows

To add a shadow to the text. Equivalent to CSS' text-shadowopen in new window.

Letter spacing

To set the space between each letter of the text. Equivalent to CSS' letter-spacingopen in new window.

Word spacing

To set the space between each word of the text. Equivalent to CSS' word-spacingopen in new window.

Text background

To set the background color of the text. Equivalent to CSS' background-coloropen in new window.

Image

This is where you can bind an image source, typically, when it comes from an external tool or API. Equivalent to HTML's srcopen in new window.

Fit

To set how the image should be displayed (for example: cover, contain, etc). Equivalent to CSS' object-fitopen in new window.

Overlay

To set the color of the image overlay. Equivalent to CSS' background-coloropen in new window.

Filters

To apply filters to the image (for example: grayscale, blur, etc). Equivalent to CSS' filteropen in new window.

Items

This is where you can bind a list of items to be displayed inside a container (like a div, columns, etc).

Direction

To set the direction of the items (for example: horizontal, vertical, etc). Equivalent to CSS' flex-directionopen in new window.

Rows gap

To set the space between each row of items. Equivalent to CSS' grid-row-gapopen in new window.

Columns gap

To set the space between each column of items. Equivalent to CSS' grid-column-gapopen in new window.

Justify

To set how the items should be aligned horizontally (for example: left, center, right, etc). Equivalent to CSS' justify-contentopen in new window.

Alignment

To set how the items should be aligned vertically (for example: top, center, bottom, etc). Equivalent to CSS' align-itemsopen in new window.

Reverse order

To reverse the order of the items. Equivalent to CSS' flex-directionopen in new window.

Push last to the end

To push the last item to the end of the container. Equivalent to CSS' justify-contentopen in new window.

Display type

To set the display type of the items (for example: list, grid, etc). Equivalent to CSS' displayopen in new window.

Presets

Set of predefined display types for columns. Equivalent to CSS' displayopen in new window.

Text

Sanitize

This is for when you bind a text to a data provided by the user, for example a comment you have register in the database.

This will escape special characters, so that you are not vulnerable to XSS attacksopen in new window.

The option is not active by default because sometimes you want these characters to be interpreted (for example making some part of the text bold with markup).

Sanitize option in WeWeb

Sizing

Width

To set the width of the element. Equivalent to CSS' widthopen in new window.

Height

To set the height of the element. Equivalent to CSS' heightopen in new window.

Max-width

To set the maximum width of the element. Equivalent to CSS' max-widthopen in new window.

Min-width

To set the minimum width of the element. Equivalent to CSS' min-widthopen in new window.

Max-height

To set the maximum height of the element. Equivalent to CSS' max-heightopen in new window.

Min-height

To set the minimum height of the element. Equivalent to CSS' min-heightopen in new window.

Spacing

Padding

To set the padding of the element. Equivalent to CSS' paddingopen in new window.

Margin

To set the margin of the element. Equivalent to CSS' marginopen in new window.

Display

Alignment

To set how the element should be aligned vertically (for example: top, center, bottom, etc). Equivalent to CSS' align-itemsopen in new window.

Display

To set if an element should be displayed or not. Equivalent to CSS' display: noneopen in new window.

TIP

This is how you can hide an element on responsive mode or when a condition is met.

Opacity

To set the opacity of the element. Equivalent to CSS' opacityopen in new window.

Position

To set the position of the element. Equivalent to CSS' positionopen in new window.

Z axis

To set the z-index of the element. Equivalent to CSS' z-indexopen in new window.

Cursor

To set the cursor of the element. Equivalent to CSS' cursoropen in new window.

Overflow

To set the overflow of the element. Equivalent to CSS' overflowopen in new window.

Background

Color

To set the background color of the element. Equivalent to CSS' background-coloropen in new window.

Element

To set the background element (like and image or video) of the element. Equivalent to CSS' backgroundopen in new window.

Borders & Shadows

Borders

To set the borders of the element. Equivalent to CSS' borderopen in new window.

Corner radius

To set the corner radius of the element. Equivalent to CSS' border-radiusopen in new window.

Shadows

To set the shadows of the element. Equivalent to CSS' box-shadowopen in new window.

Advanced

Transform

To set the transform of the element. Equivalent to CSS' transformopen in new window.

Transition

To set the transition of the element. Equivalent to CSS' transitionopen in new window.

Perspective

To set the perspective of the element. Equivalent to CSS' perspectiveopen in new window.

Custom CSS

Here, you can add custom CSS to the element. Equivalent to CSS' styleopen in new window.

Last Updated:
Contributors: Joyce Kettering