CodeToLive

CSS Styling

CSS allows you to style elements with colors, fonts, borders, and more.

Colors and Backgrounds


body {
  background-color: #f0f0f0;
  color: #333;
}
      

Fonts and Text


h1 {
  font-family: Arial, sans-serif;
  font-size: 2rem;
  text-align: center;
}
      
Next: CSS Responsive Design