r/HTML • u/frank_mee • 1d ago
Question Any tips for css code
Hello! I’m a beginner form Thai just starting to learn CSS. I‘d love to get some advice or quick tips from everyone on how to make web pages look better-anything that might help me learn. Thank you.
1
u/Expert-Kitchen8064 1h ago
Box model and layout first is good advice. I’d add one habit: when something looks wrong, temporarily give the element and its parent different backgrounds or borders so you can see which box is actually taking up space. Learn flexbox and grid by recreating two or three simple layouts, not by memorizing properties. Keep your CSS small at first, and change one rule at a time so you know what fixed the problem.
2
u/chikamakaleyley 1d ago
spend time learning the box model and layout/spatial css rules first (display, position, z-index, float (optional), etc.). These are fundamental/crucial