BLACK FRIDAY
Lifetime 50% discount on all plans
Use code
YCBF25
Ycode logotype
Features
Layout & Design

Experience full design control to craft professional websites.

CMS

Organize your content your way for maximum impact.

Forms

Build contact, newsletter, and filter forms effortlessly.

SEO

Boost your website's SEO with optimized controls.

Interactions

Add some spark to your website with interactions.

Localization

Translate your website into multiple languages.

Resources
Templates

Customize any template to fit your style and needs.

Integrations

Connect Ycode with your favorite tools.

Customer stories

Explore how others create amazing sites using Ycode.

Academy

Start learning Ycode for free. Get answers to your questions.

Experts

Find experts to help with your website project.

Blog

No-code insights to help you build and design better projects.

Support
Help Center

Find step-by-step guides and answers in our knowledge base.

Contact

Contact us for urgent help.

Community

Connect and learn from others.

Pricing Partners
Log in Sign up
Introduction
Getting started
Dashboard
Dashboard
New project
Profile
Switch account
Users
Billing history
Account settings
Project settings
Project settings
General settings
Project ownership
Allow cloning
Project plan
SEO
Domain
Redirects
API Tokens
Builder
Builder
Canvas
Layers
Switch page
Left-side panel
Editor mode
Keyboard shortcuts
Breakpoints
Preview
Publish
Elements
Elements
Structure
Content
Actions
Media
Tables
Lists
Layouts
Slider
Forms
Form structure
Data form
Filter form
Advanced form
Authentication form
HTML
HTML
Import
Export
Embed
Design
Layer styles
Components
States
Layout
Sizing
Spacing
Typography
Backgrounds
Borders
Position
Effects
Color controls
Animations
Intro to Animations
Trigger
Properties
Page settings
General settings
SEO settings
Social share
Page folders
Workflows
Intro to workflows
ID
Types
When
Events
Data
Interactive
Other
CMS
CMS Collections
Import data
Dynamic elements
CMS pages
Display settings
Filter and search
Collection sorting
Dynamic sorting dropdown options
Pagination
CSV Export
Settings
Integrations
Zapier
Airtable
Custom code
Custom code
Related articles
Color controls
Effects
Position
Borders
Backgrounds
Typography
Spacing
Sizing
Layout
States
Components
Layer styles
Documentation Design

Sizing

Let’s first talk about how to set measurements for elements in Ycode.

Choose an element, open the Design settings on the right side and open Sizing.

Now manually input a value and choose the desired sizing unit. There’s a wide selection of units to choose from:

  • Pixels px

  • Percentage relative to the parent element %

  • Relative to the font size of the root element rem

  • Relative to the font size of the element em

  • Equal to the used x-height of the current font ex

  • Relative to the width of the “0” ch

  • Line height of the element lh

  • Viewport width vw

  • Viewport height vh

  • Viewport minimum vmin

  • Viewport maximum vmax

Viewport is the current visible area of a web page (not including scroll and toolbars). The size varies depending on the user’s screen size.

The measures vh and vw are equal to 1/100 of the height or width of the viewport.

The units vmax and vmin relate to the maximum and minimum values on vw and vh. The difference is that vmax and vmin can differ when a browser window is resized or the orientation of a mobile phone changes.

How to set width and height

You can set the width and height of elements in many different ways.

Manual: Input the value manually and choose the prefered sizing unit

None: Element won’t take up any space

Full: Element uses 100% of its parent element (if the parent is 2000 px, the child element is too)

Auto: Width and height automatically adapt and are responsive

Screen: Element uses 100% of the width or height of the viewport. On a mobile screen, the element is only as tall or wide as what fits on the screen

Content: Choose between Min-content or Max-content. Min-content defines an element’s minimal possible size where content doesn’t overflow. The max-content assumes there’s infinite available space

Columns: Choose a specific % of space that the element can take up from 8.3% (1/12 of the screen) up to 100% (12/12 of the screen)

You can also choose a minimum and maximum width and height for each element.

Overflow

Content might also overflow its container, this happens when there’s a set width and height, and not enough room inside the container.

By default, overflown content is visible (eye icon). If you want to hide all content that’s outside of its container, click the eye icon with the diagonal line across it. This clips the content.

You can also click the arrows pointing up and down to add a scroll bar to the element. Choose Auto if you want to allow a scroll bar, but only automatically add it when needed.

Object

Here you can choose which object fit is best for the element. When you have an image, this setting allows you to select how the image should resize to fit the container.

There are five options:

Contain: Content is scaled to fit its container while keeping the aspect ratio, so your images won’t look weirdly stretched. Videos will have the letterbox effect

Cover: Content is scaled to fit the entire container, and everything that doesn’t fit is clipped

Fill: Content is scaled to fit the entire container and will be stretched when needed

None: Content is not scaled

Scale down: Content is scaled down, either using None or Contain (whichever option results in the smallest size)

Browse by category

Dashboard
Project settings
Builder
Elements
Forms
Design
Animations
Page settings
Workflows
CMS
Settings
Integrations
Custom code
Ycode logotype

Visual development platform for designers and agencies.

Features Design CMS Forms SEO Animations Localization
Product Updates Pricing Templates Integrations Roadmap Developer API
Company About us Services Blog Contact Brand resources
Learn Help Center Academy Community Customer stories
Partner Experts Partner program Become a Ycode expert
Compare Ycode vs. Webflow Ycode vs. Framer Ycode vs. Squarespace
Let’s keep in touch

Join our monthly email with no-code insights and Ycode updates.

Done!

Thank you for subscribing.


2019 - 2025 © Ycode. All rights reserved.
Terms & Policies Cookies settings