swstack

swstack (102)

swstack

HTML/CSS - 27

HTML/CSS - 27: CSS Container Queries & Modern Selectors Learn the latest CSS features like Container Queries and powerful modern selectors (:has, :is, :where, etc.). .card { container-type: inline-size; } @container (min-width: 300px) { .card { padding: 40px; } }

Continue reading...
swstack

HTML/CSS - 26

HTML/CSS - 26: Component Libraries & Reusability Learn how to build reusable components (cards, buttons, navigation, etc.) for cleaner and faster development. .btn-primary { background: var(--primary); color: #000; padding: 14px 28px; border: none; border-radius: 6px; } .card { background: #111; border: 2px solid #00ff9d; padding:…

Continue reading...
swstack

HTML/CSS - 25

HTML/CSS - 25: Dark Mode & Theming Learn how to implement beautiful dark mode with system preference detection and toggle buttons. :root { --bg: #000; --text: #00ff9d; } body { background: var(--bg); color: var(--text); } #toggle { padding: 12px 24px; background: #111; color: #00ff9d; border:…

Continue reading...
swstack

HTML/CSS - 24

HTML/CSS - 24: SVG Icons & Graphics Learn how to use scalable vector graphics (SVG) for crisp icons, illustrations, and interactive elements. <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="#00ff9d" stroke-width="2"> <circle cx="12" cy="12" r="10"/> <path d="M12 8v4l3 3"/> </svg>

Continue reading...
swstack

HTML/CSS - 23

HTML/CSS - 23: Scroll Animations & Effects Make your pages more engaging with smooth scroll-triggered animations and parallax effects. .section { height: 100vh; display: flex; align-items: center; justify-content: center; transition: all 0.8s ease; } .section:hover { background: #1a1a1a; transform: scale(1.02); }

Continue reading...