How to Change the Font Size in CSS
font-size sets how big the text is. Give it a size with a unit: pixels, px, for a fixed size, or rem for a size relative to the page's base size of 16 pixels.
CSS Styling, Custom Properties, Layout and Color Schemes
View All Tagsfont-size sets how big the text is. Give it a size with a unit: pixels, px, for a fixed size, or rem for a size relative to the page's base size of 16 pixels.
font-weight sets how heavy the text is. bold makes it bold, normal takes the bold away, and numbers such as 700 give the same weights in numbers.
padding puts space inside an element, between its content and its edges. The background fills the padding, so the element looks bigger and roomier.
The border property draws a line around an element. Give it three things, a width, a style and a color, as in border: 2px solid #0f6cbd.
border-radius rounds the corners of an element. A small value softens them, a bigger value makes a pill, and 50% on a square makes a circle.
border-color changes the color of a border that's already there, and leaves its width and style alone. That makes it ideal for a state such as an error: one class turns a text box's grey border red.
The color property sets the color of text. Set it on body and the whole page follows, then give a single element its own color where it should stand out.
background-color fills the area behind an element's content. Set it on body to color the whole page, or on one element to make it stand out.
margin puts space outside an element's border, between it and its neighbors. One value sets all four sides, and the background doesn't reach into the margin.
gap puts space between the rows and the columns of a grid. It goes on the grid container, next to display: grid, and the browser shrinks the columns to make room.