CSS Properties Reference — Professional Guide

Author: Muhammad Umar | Generated: --

1. Typography

Fonts, sizes, color and text-transform examples.

Example — CSS
<style>
p {
  color: #00bcd4;
  font-size: 18px;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  text-transform: uppercase;
}
</style>
<p>Hello, I am styled with CSS!</p>

2. Box Model

Margin, padding, border, border-radius and example box.

Example — CSS
<style>
.box {
  background-color: #222;
  color: white;
  width: 300px;
  padding: 20px;
  margin: 20px auto;
  border: 3px solid #00bcd4;
  border-radius: 10px;
}
</style>
<div class="box">This is a CSS box example.</div>

3. Buttons & Hover Effects

Button styling and simple hover transform.

Example — CSS
<style>
button {
  background-color: #00bcd4;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  transition: 0.3s;
}
button:hover {
  background-color: #0097a7;
  transform: scale(1.1);
}
</style>
<button>Hover Me</button>

4. Image Styling

Rounded images with border and simple hover rotation/scale.

Example — CSS
<style>
img {
  width: 200px;
  border-radius: 15px;
  border: 3px solid #00bcd4;
  display: block;
  margin: 20px auto;
  box-shadow: 0 0 15px #00e5ff;
  transition: 0.3s;
}
img:hover {
  transform: rotate(3deg) scale(1.05);
}
</style>
<img src="https://via.placeholder.com/200">

5. Animation

CSS @keyframes — simple glow animation example.

Example — CSS
<style>
@keyframes glow {
  0% { box-shadow: 0 0 10px #00bcd4; }
  50% { box-shadow: 0 0 30px #00bcd4; }
  100% { box-shadow: 0 0 10px #00bcd4; }
}
.animated-box {
  width: 200px;
  height: 200px;
  background: #111;
  margin: 30px auto;
  border-radius: 10px;
  animation: glow 2s infinite;
}
</style>
<div class="animated-box"></div>

6. Grid Layout & Responsive

CSS Grid with auto-fit / minmax and a small responsive example.

Example — CSS
<style>
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  padding: 20px;
}
.item {
  background: #1a1a1a;
  color: white;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
}
@media (max-width:600px) {
  .box { width:95%; }
}
</style>
<div class="grid">
  <div class="item">One</div>
  <div class="item">Two</div>
  <div class="item">Three</div>
</div>