The display property specifies how an element behaves in the document layout flow.
1. Display Types Comparison
⊞Code Example
/* Inline-block buttons sitting side-by-side */
.nav-btn {
display: inline-block;
padding: 10px 20px;
background-color: #04AA6D;
color: #ffffff;
text-decoration: none;
border-radius: 8px;
font-weight: 700;
margin-right: 12px;
}
