Colors, box model, Flexbox, Grid, animations और responsive UI — apne pages ko sundar aur professional banaiye।
Yahan hum step-by-step bina style ke plain HTML ko ek professional landing page me badalte hain — box model, flexbox, colors aur hover effects use karke.
<div class="hero"> <h1>Grow With Code</h1> <p>Beginner-friendly coding classes</p> <button>Enroll Now</button> </div>
.hero {
background: #10203A;
color: #fff;
text-align: center;
padding: 60px 20px;
font-family: sans-serif;
}
.hero h1 {
font-size: 32px;
margin-bottom: 10px;
}
.hero p {
color: #C9D1DE;
margin-bottom: 24px;
}
.hero button {
background: #E2A63B;
color: #10203A;
border: none;
padding: 12px 28px;
border-radius: 6px;
font-weight: 600;
cursor: pointer;
transition: transform .2s ease;
}
.hero button:hover {
transform: translateY(-3px);
}
Ek normal website banate waqt sabse zyada use hone wali properties, category ke hisaab se.
displayblock, inline, flex, grid, nonepositionstatic, relative, absolute, fixed, stickywidth / heightElement ka sizeoverflowExtra content ka behaviourz-indexStacking ordermarginElement ke bahar ka spacepaddingElement ke andar ka spacegapFlex/grid items ke beech spacebox-sizingborder-box se size predictable bananafont-familyFont choose karnafont-size / font-weightSize aur boldnessline-heightLines ke beech spacingtext-alignleft, center, right, justifyletter-spacingLetters ke beech gapbackgroundColor, image, ya gradientborderElement ke around lineborder-radiusCorners round karnabox-shadowDepth ke liye shadowdisplay: flexFlex container bananajustify-contentMain axis alignmentalign-itemsCross axis alignmentflex-wrapItems ko next line pe wrap karnadisplay: gridGrid container bananagrid-template-columnsColumns define karnagrid-template-rowsRows define karnagrid-column / grid-rowItem ka span control karna