<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Shodamola Habeeb</title>
    <description>The latest articles on DEV Community by Shodamola Habeeb (@shodamola_habeeb_dadedd0f).</description>
    <link>https://dev.to/shodamola_habeeb_dadedd0f</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3021012%2F90d9c5b6-4dc2-406b-b7e5-c98dd1c5f1d9.png</url>
      <title>DEV Community: Shodamola Habeeb</title>
      <link>https://dev.to/shodamola_habeeb_dadedd0f</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shodamola_habeeb_dadedd0f"/>
    <language>en</language>
    <item>
      <title>5 Common Mistakes Beginners Make in CSS (And How to Fix Them)</title>
      <dc:creator>Shodamola Habeeb</dc:creator>
      <pubDate>Sat, 05 Apr 2025 19:22:05 +0000</pubDate>
      <link>https://dev.to/shodamola_habeeb_dadedd0f/5-common-mistakes-beginners-make-in-css-and-how-to-fix-them-229d</link>
      <guid>https://dev.to/shodamola_habeeb_dadedd0f/5-common-mistakes-beginners-make-in-css-and-how-to-fix-them-229d</guid>
      <description>&lt;p&gt;When I started learning CSS, it felt like magic… until nothing worked as expected. Here are five mistakes I made (and how you can avoid them):&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Using IDs Instead of Classes
Mistake:&lt;/li&gt;
&lt;/ol&gt;

&lt;h1&gt;
  
  
  button { color: red; }
&lt;/h1&gt;

&lt;p&gt;Why it’s bad: IDs are too specific and harder to override.&lt;/p&gt;

&lt;p&gt;Fix:&lt;br&gt;
Use classes instead:&lt;/p&gt;

&lt;p&gt;.button { color: red; }&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Forgetting the Box Model
Adding padding or borders without understanding width = unexpected layouts.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Fix:&lt;br&gt;
Always remember:&lt;/p&gt;

&lt;p&gt;Total Width = width + padding + border&lt;br&gt;
Use box-sizing: border-box; to simplify things.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Overusing !important
This one creates chaos.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Fix:&lt;br&gt;
Improve your selector strategy. Use !important only as a last resort.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Not Using Browser DevTools
Winging it without debugging slows you down.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Fix:&lt;br&gt;
Right-click &amp;gt; Inspect Element. DevTools is your best friend.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;No Consistent Units
Mixing px, %, em, and rem everywhere? Say less.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Fix:&lt;br&gt;
Pick one or understand when to use what. rem for typography, px for spacing is a solid start.&lt;/p&gt;

&lt;p&gt;Final Thoughts&lt;br&gt;
We all mess up in the beginning. The goal is to learn and get better. What mistake did you make when learning CSS?&lt;strong&gt;__&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>javascript</category>
      <category>devops</category>
      <category>discuss</category>
    </item>
  </channel>
</rss>
