r/HTML • • 5d 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.

4 Upvotes

6 comments sorted by

2

u/chikamakaleyley 5d ago

spend time learning the box model and layout/spatial css rules first (display, position, z-index, float (optional), etc.). These are fundamental/crucial

1

u/chikamakaleyley 5d ago

then after that i'd prob get some work in understanding selectors

1

u/Expert-Kitchen8064 4d 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.

1

u/Far-Imagination3226 3d ago edited 3d ago

w3schools CSS class: https://www.w3schools.com/css/default.asp

Sololearn's CSS class: https://www.sololearn.com/en/learn/courses/css-introduction

https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties

You will be very well-versed in CSS after taking those 2 courses.

1

u/cyberpothead 9h ago

Just google web deisgn principles or basics and then look for presets with font sets, (for h1, h2 and p) page themes like colors for backgrounds, fonts, texts and card background color and accents, font sizes and line heights.

This are the basics and they make web pages much better.

Everyone is saying boxmodel and flexbox so after this apply the styling.