The CSS Guide: The Complete Guide to Modern CSS
Hatched by Nicole Rodriguez
Apr 07, 2024
4 min read
15 views
The CSS Guide: The Complete Guide to Modern CSS
Cascading Style Sheets (or CSS) is the language that we use to style webpages. It allows us to control the presentation of our content and create visually appealing and engaging websites. When working with fonts in CSS, there is a handy technique that can save us a lot of time and effort. Instead of applying styles such as font-family or font-size to every single element on our page, we can simply set these styles on the body tag and every child element will inherit them. This means that we only need to define these styles once and they will be automatically applied to all child elements. It's a simple yet powerful way to streamline our CSS code and make it more maintainable.
However, not all CSS properties are meant to be inherited. Take the background-color property, for example. It doesn't make much sense for every child element to inherit this property. Imagine if every paragraph, heading, and image on a webpage had the same background color as the body. It would be visually confusing and make it difficult for users to distinguish between different sections of content. That's why the background-color property is not inherited by default. When we apply this property to an element, its children will not inherit it. This allows us to have more control over the visual hierarchy of our webpage and create a more engaging user experience.
Now, let's shift our focus to a different topic that complements the idea of internalizing information: writing about what we read. If you want to deeply internalize something you're reading, the best way to do it is to write about it. When we read a book or an article, it's easy to passively consume the information without truly understanding or remembering it. We may highlight interesting passages or jot down some notes in the margins, but these actions alone don't help us internalize the material in a meaningful way.
To truly internalize what we read, we need to go a step further and actively engage with the text. One effective method is to write Evergreen notes as we read. Evergreen notes are concise summaries or insights that capture the essence of what we've read. By writing about the content in our own words, we are forced to synthesize the information, make connections, and get to the heart of the matter. This process not only helps us understand the material more deeply but also aids in long-term retention.
The act of writing also allows us to organize our thoughts and clarify our understanding. It's like having a conversation with ourselves, where we can question, analyze, and explore different perspectives. By putting our thoughts into writing, we solidify our knowledge and gain a deeper grasp of the subject matter.
Now that we have explored the importance of writing to internalize texts deeply, let's conclude with three actionable pieces of advice:
-
Take the time to write Evergreen notes as you read. Don't just rely on highlighting or marginalia. Summarize the main points, highlight key insights, and jot down any questions or reflections that arise. This will help you actively engage with the material and develop a deeper understanding.
-
Experiment with different writing techniques. Try writing a brief summary of each chapter or article you read. Alternatively, you can write a critical analysis or a personal response to the content. Find a method that works best for you and stick with it. The goal is to make writing a regular practice that enhances your reading experience.
-
Share your written reflections with others. Writing doesn't have to be a solitary activity. By sharing your thoughts and insights with others, you open up the opportunity for discussion and feedback. This can further deepen your understanding and expose you to different perspectives.
In conclusion, CSS is a powerful tool for styling webpages, and understanding how properties are inherited can help us write more efficient and maintainable code. Additionally, writing about what we read is a valuable practice for internalizing information and gaining a deeper understanding. By actively engaging with the material and summarizing our thoughts in writing, we can solidify our knowledge and make meaningful connections. So, the next time you read something that resonates with you, don't just passively consume it – write about it and internalize it deeply.
Sources
Hatch New Ideas with Glasp AI 🐣
Glasp AI allows you to hatch new ideas based on your curated content. Let's curate and create with Glasp AI :)
Start Hatching 🐣