Css
CSS
CSS Basics
Syntax
selector {
property: value;
} Selectors
Element div, Class ., ID #
Pseudo-classes :hover, :nth-child()
Specificity
Hierarchy: Inline > ID > Class > Element
Comments
/* This is a comment */
Box Model

Layout & Positioning
Flexbox
.container {
display: flex;
justify-content: center;
align-items: center;
gap: 1rem;
} Grid
.grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 20px;
} Media Queries
@media (max-width: 768px) { ... } Animations
Keyframes
@keyframes slide {
0% { transform: translateX(-100%); }
100% { transform: translateX(0); }
} Variables
:root {
--primary-color: #2196F3;
}
.element {
color: var(--primary-color);
} Why Solo Dev?
This reference website is not for beginners
Solo Dev is strictly for devs who already know the game and need a beautiful cheat sheet on their second monitor which looks better than GeeksforGeeks
this portion goes away when you shrink the screen ;)
