The display property controls how elements behave in the layout.
display: block; - takes full widthdisplay: inline; - flows with textdisplay: flex; - flexible layoutdisplay: none; - hides element
Controls how elements are positioned in the page.
position: static; - normal flow (default)position: relative; - offset from normalposition: absolute; - relative to parentposition: fixed; - fixed to viewport
Flexbox makes it easy to create flexible, responsive layouts.
display: flex; - enables flexboxflex-direction: row; - horizontal (default)justify-content: center; - align horizontallyalign-items: center; - align verticallygap: 10px; - spacing between items
↑ This row uses flexbox with gap spacing
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
background: linear-gradient(to bottom, blue, white);
Essential tools for working with CSS: