💻
NoVariety Documentation
  • Overview
  • ROBLOS Documentation
    • Terminal Language
    • Coding Language
  • ROBLOS Website Creator
    • AppInstaller Files
    • HTML Interpreter
    • CSS Interpreter
      • position
      • size
      • anchor-point
      • layout-order
      • text-scale
      • text-wrap
      • color
      • background-color
      • background-transparency
      • border-size
      • border-color
      • rotation
      • visible
      • content
    • LUAScript
      • download
        • commit
      • Player
      • DOM
        • Document
          • title
          • setTitle
          • getTitle
          • addEventListener
          • removeEventListener
          • dispatchEvent
          • createNode
          • querySelector
          • getElementById
          • cloneNode
        • Elements
          • getElementById
          • getElementsById
          • querySelector
          • querySelectorAll
          • appendChild
          • insertBefore
          • removeChild
          • insertAttribute
          • removeAttribute
          • cloneNode
        • Window
          • Location
            • reload
            • to
            • teleport
          • localStorage
            • setKey
            • getKey
            • deleteKey
            • getKeys
          • alert
          • input
      • delay
      • setTimeout
      • setInterval
      • clearInterval
      • MarketPlace
        • promptGamepass
        • promptProductPurchase
        • promptPurchase
        • hasGamepass
        • hasAsset
        • purchaseSuccess
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. ROBLOS Website Creator
  2. CSS Interpreter

size

Use the size CSS property to define the size of the element. To change width and height use the respective properties,

width | width-offset

height | height-offset

This Sizing uses ROBLOX's UDim2 size with only scale and offset

Use the size property to change both the scale and offset of both x and y

Example

width: 1px; /* 1 returned */
/* changes scale */
width-offset: 50px; /* 50 returned */
/* changes offset */
height: 50%; /* 0.5 returned */
/* changes scale */
height-offset: 100% /* 1 returned */
/* changes offset */
size: 0.3px 50px 1% 25px;
/* changes both scale and offset */
PreviouspositionNextanchor-point

Last updated 1 year ago

Was this helpful?