There are initial points to take into consideration in order to make sense of the connection between HTML elements (
<div>, etc.) and CSS properties (display, font-size, background-color, etc.).
- The nature of the HTML element
- The purpose of the HTML element
You might notice that it is all about HTML elements. This is because HTML elements already have implicit CSS rules in them thru the browser. It is called the User Agent Styles or browser default styles.
Now your question borders around creating your own styles, thus, overriding the default styles.
One might categorize CSS experimentation into two:
- Static experimentation (visual design – layout colors, typography)
- Interactive experimentation (animations, interactivity)
Now, both could be overwhelming especially if you’ve already gotten past the visual design properties.
But yeah, that’s the way it is – whatever you’re building, you just have to take it one block at a time to be able to manage it – and lessen the overwhelmingness.
The most common approach in using media-query, which is also strategic, is abiding by the Mobile First principle.
- Begin your non-media queried style for mobile
- Add a media query for the next viewport size you’re designing for. For example, tablet size then desktop size
I mentioned strategic because it also tackles the concept of Less Is More or in other words, decluttering or prioritizing.
Since you’ve already mastered the basic languages of web development (HTML, CSS, JS), you are now basically skilled as a Front-end Designer.
Now, how to be a skilled UI Designer?
- Learn how to interpret the Product Requirement Document
- Learn how to translate the Task Flow Diagram into individual Wireframes and eventually into an Interaction Diagram
- Learn how to transition the designs to the Visual Designer and Front-end Designer/Developer
Dive deep into front-end web development (HTML, CSS, and JS) and take it from there.
Start by taking on personal projects wherein you will be the one to implement the front-end development aspect.
Practice via personal projects.