<?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>Forem: Sumeet Yadav</title>
    <description>The latest articles on Forem by Sumeet Yadav (@sumeet16).</description>
    <link>https://forem.com/sumeet16</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%2F647127%2F81400150-a57f-4050-af91-563762d7a518.png</url>
      <title>Forem: Sumeet Yadav</title>
      <link>https://forem.com/sumeet16</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/sumeet16"/>
    <language>en</language>
    <item>
      <title>BoxShadow property in CSS</title>
      <dc:creator>Sumeet Yadav</dc:creator>
      <pubDate>Wed, 30 Jun 2021 13:55:21 +0000</pubDate>
      <link>https://forem.com/sumeet16/boxshadow-property-in-css-47j4</link>
      <guid>https://forem.com/sumeet16/boxshadow-property-in-css-47j4</guid>
      <description>&lt;p&gt;In this blog we are going to learn a CSS property called BoxShadow, so lets get started.&lt;/p&gt;

&lt;p&gt;First of all, lets go through the syntax of this property.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--GHilH_i1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t7ledm87ds6gig7wo5rq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--GHilH_i1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/t7ledm87ds6gig7wo5rq.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;BoxShadow without blur filter&lt;/strong&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--BlE2dPnc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j2ddrwsujhbsc72t1mj7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--BlE2dPnc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/j2ddrwsujhbsc72t1mj7.png" alt="image"&gt;&lt;/a&gt; &lt;br&gt;
As you can see in the picture there is a black shadow applied to our div but it still not look good, so in order to make it look cool we have to apply blur on it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;BoxShadow with blur filter&lt;/strong&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--EM0jzoKF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rbp71x4iena4infkpzsg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--EM0jzoKF--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rbp71x4iena4infkpzsg.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now it look cool doesn't it?? &lt;/p&gt;

&lt;p&gt;CODE:&lt;br&gt;
&lt;br&gt;&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/sumeet1610/embed/NWjPYpY?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;br&gt;
&lt;br&gt;&lt;br&gt;
Now it's see some more example of Boxshadow Property.&lt;br&gt;
&lt;strong&gt;Box-Shadow-2&lt;/strong&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/sumeet1610/embed/jOmEzLv?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;br&gt;
&lt;strong&gt;Box-Shadow-3&lt;/strong&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/sumeet1610/embed/KKmwoXr?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;br&gt;
&lt;strong&gt;Box-Shadow-4&lt;/strong&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/sumeet1610/embed/BaRyrmY?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;br&gt;
&lt;strong&gt;Box-Shadow-5&lt;/strong&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/sumeet1610/embed/JjNoLMY?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;br&gt;
&lt;strong&gt;Box-Shadow-6&lt;/strong&gt;&lt;br&gt;
This effect is also known as Neomorphism and you can use this effect for buttons, for Nav-bar, Card etc. in your website.&lt;br&gt;
&lt;br&gt;&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/sumeet1610/embed/poPvLaG?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;br&gt;
&lt;strong&gt;Box-Shadow-7&lt;/strong&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/sumeet1610/embed/jOmEzzQ?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;br&gt;
&lt;br&gt;&lt;/p&gt;

&lt;p&gt;Hope you like this blog, plz do like this blog and follow me for more for more tech blog in future 😃.&lt;/p&gt;

&lt;h2&gt;
  
  
  Next Blog Topic:
&lt;/h2&gt;

&lt;p&gt;Best VSCODE extensions for beginners.&lt;/p&gt;

</description>
      <category>html</category>
      <category>css</category>
      <category>webdev</category>
      <category>ux</category>
    </item>
    <item>
      <title>Importing custom font in HTML and CSS</title>
      <dc:creator>Sumeet Yadav</dc:creator>
      <pubDate>Sun, 13 Jun 2021 07:28:22 +0000</pubDate>
      <link>https://forem.com/sumeet16/importing-custom-font-in-html-and-css-4n86</link>
      <guid>https://forem.com/sumeet16/importing-custom-font-in-html-and-css-4n86</guid>
      <description>&lt;p&gt;There are many web developers who are starting out and don't know how to add custom fonts to their website! I believe you have arrived to the right place. In this blog I am going to explain you how to import custom fonts to your website.&lt;/p&gt;

&lt;p&gt;Adding a unique font to your website is a great way to make your design stand out online.&lt;/p&gt;

&lt;p&gt;In this blog, I will walk you through the step-by-step process for adding any font to your website.&lt;/p&gt;

&lt;p&gt;So, we are going to using Google Font to import custom fonts. So let's quickly go thought the steps of importing the fonts.&lt;/p&gt;

&lt;p&gt;As of April 2021, Google Fonts have 1052 font families, including 89 variable font families.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step-1 Go to Google Font site&lt;/strong&gt;&lt;br&gt;
First of all you have to go to the Google Fonts website, The link for the website is here &lt;a href="https://fonts.google.com/" rel="noopener noreferrer"&gt;https://fonts.google.com/&lt;/a&gt; .&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3aqxdpuwicz5qnz9mr1x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3aqxdpuwicz5qnz9mr1x.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step-2 Search for the desired font&lt;/strong&gt;&lt;br&gt;
Then you have to type the desire font name in the search box and press enter for search.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fytiemcv16htnoc9f8kqo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fytiemcv16htnoc9f8kqo.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step-3 Select the styles&lt;/strong&gt;&lt;br&gt;
After that you have select the style of the font. (Eg: Thin 100, Extra-Light 200 etc...).&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flfxzvpwmiqjtjavum18i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flfxzvpwmiqjtjavum18i.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Step-4 There are 2 ways to import the font&lt;/strong&gt;&lt;br&gt;
     &lt;strong&gt;1) In HTML file&lt;/strong&gt;&lt;br&gt;
       i) You have to use link tag to import the font in HTML, else you &lt;br&gt;
       can copy the code in the box and paste that code inside you &lt;br&gt;
       html code.&lt;br&gt;
       ii) Now we have successfully added a custom font!! YAYY now we &lt;br&gt;
       just have to use in the CSS property.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyp4aphgmlfzhnljy08il.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fyp4aphgmlfzhnljy08il.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2) In CSS file&lt;/strong&gt;&lt;br&gt;
In order to import font only using CSS then you have to click on @import instead of  and copy the code inside it and paste it at the top of your CSS file.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdfqtr9wwp0eqg2puwfti.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdfqtr9wwp0eqg2puwfti.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Bonus Tip:&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;It is advise to use link tag to import font in html instead of using @import in css because the html page is the first to load in the browser and so are the link tags, hence the font will load first but on the other hand, css file is loaded after the html file, hence decreasing the speed of importing font.&lt;br&gt;
&lt;br&gt;&lt;br&gt;
Do visit the community made by me and my friend &lt;a class="mentioned-user" href="https://dev.to/shreyazz"&gt;@shreyazz&lt;/a&gt; for more amazing and informative stuff, and if you wanna recommend something or give feedback, feel free to comment😇!&lt;/p&gt;

&lt;p&gt;CodeBox's handles : &lt;a href="https://linktr.ee/CodeBox" rel="noopener noreferrer"&gt;https://linktr.ee/CodeBox&lt;/a&gt;&lt;/p&gt;

</description>
      <category>html</category>
      <category>css</category>
      <category>vscode</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
