<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Learn Web Development | For Complete Beginners - Medium]]></title>
        <description><![CDATA[Detailed posts on web development. Go from Level 0 to Level Hero. Follow me if you like the content. Feedback is always appreciated 😇 - Medium]]></description>
        <link>https://medium.com/learn-web-development-notes?source=rss----1ae01ac6adc8---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Learn Web Development | For Complete Beginners - Medium</title>
            <link>https://medium.com/learn-web-development-notes?source=rss----1ae01ac6adc8---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 12 Nov 2026 19:29:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/learn-web-development-notes" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Introduction to Responsive Design Using CSS]]></title>
            <link>https://medium.com/learn-web-development-notes/introduction-to-responsive-design-using-css-b5f42e609c1a?source=rss----1ae01ac6adc8---4</link>
            <guid isPermaLink="false">https://medium.com/p/b5f42e609c1a</guid>
            <category><![CDATA[responsive-design]]></category>
            <category><![CDATA[responsive-web-design]]></category>
            <category><![CDATA[flexbox]]></category>
            <category><![CDATA[responsive-website-design]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[TARUN KUMAR]]></dc:creator>
            <pubDate>Tue, 18 Apr 2023 06:07:03 GMT</pubDate>
            <atom:updated>2023-04-24T06:04:05.187Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Responsive Design Using CSS" src="https://cdn-images-1.medium.com/max/1024/1*6gb9nUXxStoql-q5Cf4lMQ.png" /></figure><p>As the number of people accessing the internet on their mobile devices continues to grow, it’s important for websites to adapt to different screen sizes and resolutions. Responsive design is the approach that aims to make websites look good on any device, from a tiny smartphone to a large desktop monitor.</p><p>CSS plays a central role in making responsive design happen. By using media queries, you can change the appearance of your website based on the device it’s being viewed on.</p><p>Here are some best practices for implementing responsive design on your website:</p><h3>Mobile-First Approach</h3><p>One of the best ways to make your website responsive is to start by designing for mobile devices first. This approach involves creating a design that looks good on the smallest screens and then gradually adding more styles to accommodate larger screens.</p><pre>/* Mobile styles */<br>.container {<br>  width: 100%;<br>  padding: 10px;<br>}<br><br>/* Tablet styles */<br>@media screen and (max-width: 768px) {<br>  .container {<br>    max-width: 768px;<br>    margin: 0 auto;<br>    padding: 20px;<br>  }<br>}<br><br>/* Desktop styles */<br>@media screen and (max-width: 992px) {<br>  .container {<br>    max-width: 992px;<br>  }<br>}</pre><h3>Responsive Images</h3><p>Images are a crucial part of any website, but they can also be a major source of problems when it comes to responsive design. To ensure that your images look good on any device, you can use the max-width property to prevent them from overflowing their containers.</p><pre>img {<br>  max-width: 100%;<br>  height: auto;<br>}</pre><h3>Flexbox Layout</h3><p>Flexbox is a powerful layout tool that makes it easy to create complex layouts without using floats or positioning. It’s especially useful for creating responsive designs because it allows you to easily change the order and size of your content based on the screen size.</p><pre>.container {<br>  display: flex;<br>  flex-wrap: wrap;<br>}<br><br>.item {<br>  flex-basis: 100%;<br>}<br><br>@media screen and (max-width: 768px) {<br>  .item {<br>    flex-basis: 50%;<br>  }<br>}<br><br>@media screen and (max-width: 992px) {<br>  .item {<br>    flex-basis: 33.33%;<br>  }<br>}</pre><h3>Conclusion</h3><p>Responsive design is a crucial aspect of web development in today’s world. With the increasing use of mobile devices, it’s more important than ever to ensure that your website looks and works great on all screen sizes. CSS plays a central role in making responsive design possible. By using media queries and following best practices, you can create a website that looks great on any device.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b5f42e609c1a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/learn-web-development-notes/introduction-to-responsive-design-using-css-b5f42e609c1a">Introduction to Responsive Design Using CSS</a> was originally published in <a href="https://medium.com/learn-web-development-notes">Learn Web Development | For Complete Beginners</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flexbox: The Flexible Box Layout Model | Complete Guide]]></title>
            <link>https://medium.com/learn-web-development-notes/flexbox-the-flexible-box-layout-model-complete-guide-94a0aaf02fff?source=rss----1ae01ac6adc8---4</link>
            <guid isPermaLink="false">https://medium.com/p/94a0aaf02fff</guid>
            <category><![CDATA[flexboxlayout]]></category>
            <category><![CDATA[css3]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[flexbox-css-centering]]></category>
            <category><![CDATA[flexbox]]></category>
            <dc:creator><![CDATA[TARUN KUMAR]]></dc:creator>
            <pubDate>Mon, 21 Nov 2022 16:14:21 GMT</pubDate>
            <atom:updated>2022-11-21T16:14:21.452Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uz6oEwd8IkPQHAJ5FFiqjQ.png" /><figcaption>CSS Flexbox</figcaption></figure><p>It is a CSS layout mode that provides an easy and clean way to arrange items in a container.</p><p>It doesn’t use any float property and it’s responsive, which makes our job easier to position elements.</p><figure><img alt="Flexbox Grid" src="https://cdn-images-1.medium.com/max/1024/1*xvf77cKaEtijoaGeXJkK7w.png" /><figcaption>Flexbox Grid</figcaption></figure><h3>Display Flex</h3><p>You can make any container flex by setting its display property to flex:</p><pre>div {<br>  display: flex;<br>}</pre><p>This code will also arrange all items inside the container in a row.</p><figure><img alt="Display set to flex" src="https://cdn-images-1.medium.com/max/771/1*dMdFGRy8pRbn1A35jv6Tiw.png" /><figcaption>Display set to flex</figcaption></figure><h3>Flex Direction</h3><p>Don’t worry, you can change the flex direction by using the following property:</p><pre>div {<br>  display: flex;<br>  flex-direction: column;<br>}</pre><figure><img alt="Change flex direction" src="https://cdn-images-1.medium.com/max/268/1*M7urOrgoBAi7DU85zYduNg.png" /><figcaption>Change flex-direction</figcaption></figure><p>You can select any of these directions:</p><pre>flex-direction: row;</pre><pre>flex-direction: column;</pre><pre>flex-direction: row-reverse;</pre><pre>flex-direction: column-reverse;</pre><h3>Justify Content</h3><p>This property aligns items horizontally and accepts the following values:</p><pre>justify-content: flex-start; <br>/* Items align to the left side of the container.*/</pre><figure><img alt="flex-start" src="https://cdn-images-1.medium.com/max/1024/1*nZsTaynoCtY7bu7ly1DQjw.png" /><figcaption>flex-start</figcaption></figure><pre>justify-content: flex-end; <br>/* Items align to the right side of the container. */</pre><figure><img alt="flex-end" src="https://cdn-images-1.medium.com/max/1024/1*r5eWR8bdwphaiSMHSLNoiw.png" /><figcaption>flex-end</figcaption></figure><pre>justify-content: center; <br>/* Items align at the center of the container. */</pre><figure><img alt="center" src="https://cdn-images-1.medium.com/max/1024/1*s2ScbjMR0LtGOGeUZUx4xQ.png" /><figcaption>center</figcaption></figure><pre>justify-content: space-between; <br>/* Items display with equal spacing between them. */</pre><figure><img alt="space-between" src="https://cdn-images-1.medium.com/max/1024/1*Ld2yNnaVK6dZME0bkYwEyQ.png" /><figcaption>space-between</figcaption></figure><pre>justify-content: space-around; <br>/* Items display with equal spacing around them. */</pre><figure><img alt="space-around" src="https://cdn-images-1.medium.com/max/1024/1*hWbcslW9oC2ibuClZ9T7rA.png" /><figcaption>space-around</figcaption></figure><h3>Align Items</h3><p>This CSS property aligns items vertically and accepts the following values:</p><pre>align-items: flex-start; <br>/* Items align to the top of the container. */</pre><figure><img alt="Align Items: flex-start" src="https://cdn-images-1.medium.com/max/1024/1*9kdrDXEeiC-D2PUdMY7Q9Q.png" /><figcaption>Align Items: flex-start</figcaption></figure><pre>align-items: flex-end; <br>/* Items align to the bottom of the container. */</pre><figure><img alt="Align Items: flex-end" src="https://cdn-images-1.medium.com/max/1024/1*ZkplOsn-bUOqmE5znJqv1Q.png" /><figcaption>Align Items: flex-end</figcaption></figure><pre>align-items: center; <br>/* Items align at the vertical center of the container. */</pre><figure><img alt="Align Items: center" src="https://cdn-images-1.medium.com/max/1024/1*9kX5ob0EfLes_epH5R0CdQ.png" /><figcaption>Align Items: center</figcaption></figure><p>Try mixing both justify-content &amp; align-items properties.</p><h3>Order</h3><p>Sometimes reversing the row or column order of a container is not enough. In these cases, we can apply the order property to individual items. By default, items have a value of 0, but we can use this property to also set it to a positive or negative integer value (-2, -1, 0, 1, 2).</p><figure><img alt="Default Positions" src="https://cdn-images-1.medium.com/max/1024/1*N5CPJ03TaE8vopX-xGtsYg.png" /><figcaption>Default Positions</figcaption></figure><pre>order: 2;</pre><figure><img alt="After changing order" src="https://cdn-images-1.medium.com/max/1024/1*EikvWAZ7h6ad0kvCaARWmA.png" /><figcaption>After changing order</figcaption></figure><h3>Align Self</h3><p>Another property you can apply to individual items is align-self. This property accepts the same values as align-items and its value for the specific item.</p><figure><img alt="Adding different align-self properties to all divs" src="https://cdn-images-1.medium.com/max/1024/1*Yo4ATHiOmefDaKKZFgZIUA.png" /><figcaption>Adding different align-self properties to all divs</figcaption></figure><h3>Flex Wrap</h3><p>The flex-wrap CSS property sets whether flex items are forced onto one line or can wrap onto multiple lines. If wrapping is allowed, it sets the direction in that lines are stacked.</p><pre>flex-wrap: nowrap; <br>/* The flex items are laid out in a single line which may cause the flex container to overflow. */</pre><figure><img alt="nowrap" src="https://cdn-images-1.medium.com/max/1024/1*UaSLz5M2sRQKiLu6wE5uKA.png" /><figcaption>nowrap</figcaption></figure><pre>flex-wrap: wrap; <br>/* The flex items break into multiple lines. */</pre><figure><img alt="wrap" src="https://cdn-images-1.medium.com/max/1024/1*c6aJWrh6xJp5fxjKVzLcJA.png" /><figcaption>wrap</figcaption></figure><pre>flex-wrap: wrap-reverse; <br>/* Gives us the opposite output of wrap property. */</pre><figure><img alt="wrap-reverse" src="https://cdn-images-1.medium.com/max/1024/1*RLu2DwhyU99zRAFYJq1Ndw.png" /><figcaption>wrap-reverse</figcaption></figure><h3>Flex Flow</h3><p>The two properties flex-direction and flex-wrap are used so often together that the shorthand property flex-flow was created to combine them. This shorthand property accepts the value of the two properties separated by a space.</p><pre>flex-flow: column wrap;</pre><figure><img alt="Flex Direction &amp; Flow Together" src="https://cdn-images-1.medium.com/max/1024/1*dKJOTcUdjjeg1TkjtpeUEw.png" /><figcaption>Flex Direction &amp; Flow Together</figcaption></figure><p>Try finding and playing with more properties of flexbox.</p><p>You also have some fun and interesting games to learn flexbox, like <a href="https://flexboxfroggy.com/">Flexbox Froggy</a> &amp; <a href="http://www.flexboxdefense.com/">Flexbox Defence</a>, etc.</p><p>Instructor ~ <a href="https://medium.com/u/a9d49b049f18">TARUN KUMAR</a></p><p><a href="https://lazysyntax.com/">LAZY SYNTAX</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=94a0aaf02fff" width="1" height="1" alt=""><hr><p><a href="https://medium.com/learn-web-development-notes/flexbox-the-flexible-box-layout-model-complete-guide-94a0aaf02fff">Flexbox: The Flexible Box Layout Model | Complete Guide</a> was originally published in <a href="https://medium.com/learn-web-development-notes">Learn Web Development | For Complete Beginners</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CSS — Transition]]></title>
            <link>https://medium.com/learn-web-development-notes/css-transition-5f1d3afcbda2?source=rss----1ae01ac6adc8---4</link>
            <guid isPermaLink="false">https://medium.com/p/5f1d3afcbda2</guid>
            <category><![CDATA[css-transition]]></category>
            <category><![CDATA[css-animation]]></category>
            <category><![CDATA[animate-webpage]]></category>
            <category><![CDATA[css-transforms]]></category>
            <category><![CDATA[css-tricks]]></category>
            <dc:creator><![CDATA[TARUN KUMAR]]></dc:creator>
            <pubDate>Sun, 21 Aug 2022 17:23:59 GMT</pubDate>
            <atom:updated>2022-08-21T17:23:59.478Z</atom:updated>
            <content:encoded><![CDATA[<h3>CSS — Transition</h3><figure><img alt="CSS Transition" src="https://cdn-images-1.medium.com/max/1024/1*-OfCzMo3_U6VxaljGqZuBQ.png" /><figcaption>CSS Transition</figcaption></figure><p><strong>CSS transitions</strong> allow you to change property values over a given duration.</p><p>The following example shows a 100px * 100px red &lt;div&gt; element. The &lt;div&gt; element has also specified a transition effect for the width property, with a duration of 2 seconds:</p><pre>div {<br>  width: 100px;<br>  height: 100px;<br>  background: red;<br>  transition: width 2s;<br>}</pre><p>The transition effect will start when the specified CSS property (width) changes value.</p><p>Now, let us specify a new value for the width property when a user mouses over the &lt;div&gt; element:</p><pre>div:hover {<br>  width: 300px;<br>}</pre><figure><img alt="CSS Transition Property" src="https://cdn-images-1.medium.com/max/1024/1*4gXsffVE4BNe13StzPWbEg.gif" /><figcaption>CSS Transition Property</figcaption></figure><h4>Change Several Property Values</h4><p>Separate all properties with a comma.</p><pre>div {<br>  transition: width 2s, height 4s;<br>}</pre><figure><img alt="Adding Multiple Transitions" src="https://cdn-images-1.medium.com/max/1024/1*VOLFCTc-zINgM3XqKoJ8zw.gif" /><figcaption>Adding Multiple Transitions</figcaption></figure><h4>Specify the Speed Curve of the Transition</h4><p>The transition-timing-function property specifies the speed curve of the transition effect.</p><p>The transition-timing-function property can have the following values:</p><ul><li>ease - specifies a transition effect with a slow start, then fast, then end slowly (this is the default)</li><li>linear - specifies a transition effect with the same speed from start to end</li><li>ease-in - specifies a transition effect with a slow start</li><li>ease-out - specifies a transition effect with a slow end</li><li>ease-in-out - specifies a transition effect with a slow start and end</li><li>cubic-bezier(n,n,n,n) - lets you define your own values in a cubic-bezier function</li></ul><h4>Delay the Transition Effect</h4><p>The transition-delay property specifies a delay (in seconds) for the transition effect.</p><p>The following example has a 1-second delay before starting:</p><pre>div {<br>  transition-delay: 1s;<br>}</pre><h4>Transition + Transformation</h4><pre>div {<br>  width: 100px;<br>  height: 100px;<br>  background: red;<br>  transition: width 2s, height 2s, transform 2s;<br>}</pre><pre>div:hover {<br>  width: 300px;<br>  height: 300px;<br>  transform: rotate(180deg);<br>}</pre><figure><img alt="Transition with Transform" src="https://cdn-images-1.medium.com/max/1024/1*h_E6Gu6itDo8b2RyW1XTVg.gif" /><figcaption>Transition with Transform</figcaption></figure><p>Explore more about Transition &amp; Transform property. Get help from your goof friend Google 😉</p><p>Instructor ~ <a href="https://medium.com/u/a9d49b049f18">TARUN KUMAR</a></p><p><a href="http://lazysyntax.com/">LAZY SYNTAX</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f1d3afcbda2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/learn-web-development-notes/css-transition-5f1d3afcbda2">CSS — Transition</a> was originally published in <a href="https://medium.com/learn-web-development-notes">Learn Web Development | For Complete Beginners</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CSS — Box Shadow]]></title>
            <link>https://medium.com/learn-web-development-notes/css-box-shadow-ea4aa62cdb64?source=rss----1ae01ac6adc8---4</link>
            <guid isPermaLink="false">https://medium.com/p/ea4aa62cdb64</guid>
            <category><![CDATA[css-text-shadow]]></category>
            <category><![CDATA[css-box-shadow]]></category>
            <category><![CDATA[shadow]]></category>
            <category><![CDATA[text-shadow]]></category>
            <category><![CDATA[box-shadow]]></category>
            <dc:creator><![CDATA[TARUN KUMAR]]></dc:creator>
            <pubDate>Mon, 15 Aug 2022 15:31:31 GMT</pubDate>
            <atom:updated>2022-08-15T15:31:31.218Z</atom:updated>
            <content:encoded><![CDATA[<h3>CSS — Box Shadow</h3><figure><img alt="CSS- Box Shadow" src="https://cdn-images-1.medium.com/max/1024/1*tkRAN5RHGL3ZXUf6B0wKzA.png" /><figcaption>CSS- Box Shadow</figcaption></figure><p>The <strong>box-shadow</strong> CSS property adds shadow effects around an element&#39;s frame. A box shadow is described by X and Y offsets relative to the element, blur and spread radius, and color.</p><h4>Adding a simple shadow:</h4><p>We need to define the <strong>X offset</strong>, <strong>Y offset</strong>, and <strong>Shadow Color</strong></p><pre>box-shadow: 60px -16px teal;</pre><figure><img alt="Adding a simple box-shadow" src="https://cdn-images-1.medium.com/max/1024/1*EyTdmmlv-QGgmWo82UR8TA.png" /><figcaption>Adding a simple box-shadow</figcaption></figure><h4>Add blur to the shadow:</h4><p>We need to define the <strong>X offset</strong>, <strong>Y offset</strong>, <strong>Blur Radius,</strong> and <strong>Shadow Color</strong></p><pre>box-shadow: 10px 5px 5px black;</pre><figure><img alt="Adding Blur Radius to box-shadow" src="https://cdn-images-1.medium.com/max/1024/1*Iug1trmPj5iES11HiyA4Ow.png" /><figcaption>Adding Blur Radius to box-shadow</figcaption></figure><h4>Add spread to the shadow:</h4><p>We need to define the <strong>X offset</strong>, <strong>Y offset</strong>, <strong>Blur Radius,</strong> <strong>Spread Radius</strong>, and <strong>Shadow Color</strong></p><pre>box-shadow: 5px 5px 5px 2px rgba(0, 0, 0, 0.2);</pre><figure><img alt="Adding Spread Radius to box-shadow" src="https://cdn-images-1.medium.com/max/1024/1*EbNAqJY0dqJsBDeDs0nidQ.png" /><figcaption>Adding Spread Radius to box-shadow</figcaption></figure><h4>Adding multiple shadows:</h4><pre>box-shadow: 3px 3px red, -1em 0 0.4em olive;</pre><figure><img alt="Adding multiple shadows" src="https://cdn-images-1.medium.com/max/1024/1*vbiIkPmJeLZq5dUevwSffw.png" /><figcaption>Adding multiple shadows</figcaption></figure><p>Have fun playing with <strong>box-shadow</strong> and dig even deeper in the same property by using our good friend <strong>Google ;)</strong></p><p>Instructor ~ <a href="https://medium.com/u/a9d49b049f18">TARUN KUMAR</a></p><p><a href="http://lazysyntax.com/">LAZY SYNTAX</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea4aa62cdb64" width="1" height="1" alt=""><hr><p><a href="https://medium.com/learn-web-development-notes/css-box-shadow-ea4aa62cdb64">CSS — Box Shadow</a> was originally published in <a href="https://medium.com/learn-web-development-notes">Learn Web Development | For Complete Beginners</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CCSS — Font-Size & Units]]></title>
            <link>https://medium.com/learn-web-development-notes/ccss-font-size-units-84b3786f90b5?source=rss----1ae01ac6adc8---4</link>
            <guid isPermaLink="false">https://medium.com/p/84b3786f90b5</guid>
            <category><![CDATA[css-units]]></category>
            <category><![CDATA[font-size-in-css]]></category>
            <category><![CDATA[css-font-size]]></category>
            <category><![CDATA[vh-vw-vmin-vmax]]></category>
            <category><![CDATA[size-units-in-css]]></category>
            <dc:creator><![CDATA[TARUN KUMAR]]></dc:creator>
            <pubDate>Sun, 14 Aug 2022 16:15:09 GMT</pubDate>
            <atom:updated>2022-08-17T04:20:18.009Z</atom:updated>
            <content:encoded><![CDATA[<h3>CSS — Font-Size &amp; Units</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*SXuR5WONGM_aWABCNJjbWg.png" /><figcaption>CSS — Font Size &amp; Units</figcaption></figure><p>The <strong>font-size</strong> property specifies the size of the text. It can be specified as a fixed size in various units, a percentage, or as a predefined keyword.</p><h4>Values</h4><p>Absolute-size keywords, based on the user’s default font size (which is medium).</p><pre>font-size: large;</pre><p>All values in pixels:</p><pre>xx-small = 9px<br>x-small  = 10px<br>small    = 13.3px<br>smaller  = 14px<br>medium   = 16px (Default Paragraph Size)<br>large    = 18px<br>larger   = 19px<br>x-large  = 24px<br>xx-large = 32px</pre><h4>Percentage</h4><p>A positive percentage value, relative to the parent element&#39;s font size.</p><pre>font-size: 200%;</pre><h4>Pixels</h4><p>Setting the font size in pixel values (px) is a good choice when you need pixel accuracy. A px value is static.</p><pre>font-size: 18px;</pre><h4>Em</h4><p>Using an em value creates a dynamic or computed font size. The numeric value acts as a multiplier of the font-size property of the element on which it is used.</p><pre>font-size: 2em;</pre><p>One important fact to keep in mind: em values compound according to the parent elements.</p><h4>Rem</h4><p>rem values were invented in order to sidestep the compounding problem. rem values are relative to the root html element, not the parent element.</p><pre>font-size: 1.6rem;</pre><h3>Other Units</h3><p>Many CSS properties take “length” values, such as width, margin, padding, font-size, etc.</p><h4>vh</h4><p>1vh is relative to 1% of the height of the viewport.</p><pre>height: 1vh;</pre><h4>vw</h4><p>1vw is relative to 1% of the width of the viewport.</p><pre>width: 1vw;</pre><h4>vmin</h4><p>It is the minimum between the viewport’s height or width in percentage depending on which is smaller.</p><pre>font-size: 20vmin;</pre><h4>vmax</h4><p>It is the maximum between the viewport’s height or width in percentage depending on which is bigger.</p><pre>font-size: 30vmax;</pre><p>Instructor ~ <a href="https://medium.com/u/a9d49b049f18">TARUN KUMAR</a></p><p><a href="http://lazysyntax.com/">LAZY SYNTAX</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84b3786f90b5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/learn-web-development-notes/ccss-font-size-units-84b3786f90b5">CCSS — Font-Size &amp; Units</a> was originally published in <a href="https://medium.com/learn-web-development-notes">Learn Web Development | For Complete Beginners</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CSS Selectors]]></title>
            <link>https://medium.com/learn-web-development-notes/css-selectors-10064bf1fb1?source=rss----1ae01ac6adc8---4</link>
            <guid isPermaLink="false">https://medium.com/p/10064bf1fb1</guid>
            <category><![CDATA[html-selectors]]></category>
            <category><![CDATA[css-selectors]]></category>
            <category><![CDATA[selectors]]></category>
            <category><![CDATA[advance-css]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[TARUN KUMAR]]></dc:creator>
            <pubDate>Fri, 12 Aug 2022 14:32:30 GMT</pubDate>
            <atom:updated>2022-08-12T14:34:44.893Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="CSS Selectors" src="https://cdn-images-1.medium.com/max/1024/1*19Efy6sT1rp9ubxPBPqjBQ.png" /><figcaption>CSS Selectors</figcaption></figure><p><strong>CSS selectors</strong> define the elements to which a set of CSS rules apply. CSS selectors are used to <strong>“find”</strong> (or <strong>select</strong>) the HTML elements you want to style.</p><h4>Universal selector (*)</h4><p>It selects all elements on a web page.</p><pre>* {}</pre><h4>Type Selector (Element Name)</h4><p>It selects specific HTML element.</p><pre>div {}</pre><h4><strong>Class Selector (.)</strong></h4><p>It selects elements with the same class name.</p><pre>.className {}</pre><h4>ID Selector (#)</h4><p>It selects elements with the same ID name.</p><pre>#idName {}</pre><h4>Selector List (,)</h4><p>This selector is a grouping method that selects all the matching nodes.</p><pre>p, div, span {}</pre><h4>Descendant combinator (space)</h4><pre>div p {}</pre><p>It will select any <strong>“p”</strong> inside <strong>“div”</strong>, even if there are other elements between them.</p><h4>Child combinator (&gt;)</h4><p>It selects nodes that are direct children of the first element.</p><pre>p &gt; span {}</pre><h4>Adjacent sibling combinator</h4><p>It matches the second element only if it immediately follows the first element, and both are children of the same parent element.</p><pre>/* Paragraphs that come immediately after any image */<br>img + p {}</pre><p>There are many more CSS Selectors but you don’t need to know it all. We use only particular selectors in daily use.</p><p>Instructor ~ <a href="https://medium.com/u/a9d49b049f18">TARUN KUMAR</a></p><p><a href="http://lazysyntax.com/">LAZY SYNTAX</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10064bf1fb1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/learn-web-development-notes/css-selectors-10064bf1fb1">CSS Selectors</a> was originally published in <a href="https://medium.com/learn-web-development-notes">Learn Web Development | For Complete Beginners</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CSS — Pseudo Class]]></title>
            <link>https://medium.com/learn-web-development-notes/css-pseudo-class-33e8cb14ff47?source=rss----1ae01ac6adc8---4</link>
            <guid isPermaLink="false">https://medium.com/p/33e8cb14ff47</guid>
            <category><![CDATA[visited-link-style-change]]></category>
            <category><![CDATA[button-hover-effect]]></category>
            <category><![CDATA[pseudo-class]]></category>
            <category><![CDATA[css-pseudo-class]]></category>
            <category><![CDATA[link-hover-effect]]></category>
            <dc:creator><![CDATA[TARUN KUMAR]]></dc:creator>
            <pubDate>Thu, 28 Jul 2022 17:22:38 GMT</pubDate>
            <atom:updated>2022-07-28T17:22:37.926Z</atom:updated>
            <content:encoded><![CDATA[<h3>CSS — Pseudo Class</h3><figure><img alt="CSS Pseudo Class" src="https://cdn-images-1.medium.com/max/1024/1*dH6OOPGkRueRSA7weBt5KA.png" /><figcaption>CSS Pseudo Class</figcaption></figure><p>A <strong>pseudo-class</strong> is used to define a special state of an element like when we hover the mouse over the button or when we click on a link and much more.</p><p>Look at some pseudo-classes.<br>To get the mouse hover effect:</p><pre>p:hover {<br> text-decoration: underline;<br> color: red;<br>}</pre><figure><img alt="Hover Effect" src="https://cdn-images-1.medium.com/max/1024/1*RZe4xcsQnU4Gj3Ftl8yF4Q.gif" /><figcaption>Hover Effect</figcaption></figure><p>To change something when a link is visited:</p><pre>a:visited {<br> color: red;<br>}</pre><figure><img alt="Before Clicking" src="https://cdn-images-1.medium.com/max/1024/1*h5OSbGpJu8kxjL2BJH6B1A.png" /><figcaption>Before Clicking</figcaption></figure><figure><img alt="After Clicking" src="https://cdn-images-1.medium.com/max/1024/1*QYSZap14gCO-adCeT4X5sA.png" /><figcaption>After Clicking</figcaption></figure><p>If you have some same elements on your webpage and you want to select a specific element inside of those elements, then you can do this:</p><pre>p:nth-of-type(3) {<br> background-color: green;<br>}</pre><figure><img alt="Styling specific element by it’s number" src="https://cdn-images-1.medium.com/max/1024/1*Xp_Fl9ccy1p-HfexwRxajg.png" /><figcaption>Styling specific element by it’s number</figcaption></figure><p>To select only checked checkboxes:</p><pre>input:checked {<br> margin-left: 100px;<br>}</pre><figure><img alt="Styling Inputs" src="https://cdn-images-1.medium.com/max/1024/1*CKBIlsn_21Po3dTcxRCf_A.png" /><figcaption>Styling Inputs</figcaption></figure><p>To select the first letter on an element:</p><pre>p:first-letter {<br> font-size: 50px;<br>}</pre><figure><img alt="Selecting First Letter and Styling it" src="https://cdn-images-1.medium.com/max/1024/1*xZRRbChcBXrnPqEhwXJENQ.png" /><figcaption>Selecting First Letter and Styling it</figcaption></figure><p>Google <strong>“CSS pseudo-class”</strong> for more information.</p><p>Instructor ~ <a href="https://medium.com/u/a9d49b049f18">TARUN KUMAR</a></p><p><a href="http://lazysyntax.com/">LAZY SYNTAX</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33e8cb14ff47" width="1" height="1" alt=""><hr><p><a href="https://medium.com/learn-web-development-notes/css-pseudo-class-33e8cb14ff47">CSS — Pseudo Class</a> was originally published in <a href="https://medium.com/learn-web-development-notes">Learn Web Development | For Complete Beginners</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CSS — Text Align]]></title>
            <link>https://medium.com/learn-web-development-notes/css-text-align-4ef5f1690c7?source=rss----1ae01ac6adc8---4</link>
            <guid isPermaLink="false">https://medium.com/p/4ef5f1690c7</guid>
            <category><![CDATA[css-text-align]]></category>
            <category><![CDATA[css-text-style]]></category>
            <category><![CDATA[text-alignment]]></category>
            <category><![CDATA[text-align-center]]></category>
            <category><![CDATA[text-align]]></category>
            <dc:creator><![CDATA[TARUN KUMAR]]></dc:creator>
            <pubDate>Wed, 27 Jul 2022 13:07:34 GMT</pubDate>
            <atom:updated>2022-07-27T13:07:34.906Z</atom:updated>
            <content:encoded><![CDATA[<h3>CSS — Text Align</h3><figure><img alt="CSS — Text Align" src="https://cdn-images-1.medium.com/max/1024/1*Fh6MzFixr1ZZLHuHgLHQTQ.png" /><figcaption>CSS — Text Align</figcaption></figure><p>To align the text to different positions on the page we use the <strong>“text-align”</strong> property. It’s just like the float property.</p><pre>text-align: right;</pre><figure><img alt="Text Aligned to The Right" src="https://cdn-images-1.medium.com/max/1024/1*nLz5xZekzEGd3brqGzz0_w.png" /><figcaption>Text Aligned To The Right</figcaption></figure><p>But it actually aligns it according to its parent element. That means if I put it in a div and make it smaller than the page then it will be aligned to the right of that div and not the page itself.</p><pre>&lt;div&gt;<br> &lt;p&gt;This is some text.&lt;/p&gt;<br>&lt;/div&gt;</pre><pre>div {<br> width: 500px;<br> background-color: red;<br>}<br>p {<br> text-align: right;<br>}</pre><figure><img alt="Text Aligned Right in A Div" src="https://cdn-images-1.medium.com/max/1024/1*JcyyJ-TbKFkaGy9r7j589g.png" /><figcaption>Text Aligned Right in A Div</figcaption></figure><p>You can also align the text in different positions like:</p><pre>text-align:left;<br>text-align:center;</pre><p>Justified text stretches the letter adjusting the space between them and fills up the whole element.</p><pre>div {<br> width: 500px;<br> background-color: yellow;<br>}<br>p {<br> text-align: justify;<br>}</pre><figure><img alt="Justified Text" src="https://cdn-images-1.medium.com/max/1024/1*FIn9EkSl1blp6Y2Iz6HqbA.png" /><figcaption>Justified Text</figcaption></figure><p>Instructor ~ <a href="https://medium.com/u/a9d49b049f18">TARUN KUMAR</a></p><p><a href="http://lazysyntax.com/">LAZY SYNTAX</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ef5f1690c7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/learn-web-development-notes/css-text-align-4ef5f1690c7">CSS — Text Align</a> was originally published in <a href="https://medium.com/learn-web-development-notes">Learn Web Development | For Complete Beginners</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CSS — Text Styling, Pseudo Classes]]></title>
            <link>https://medium.com/learn-web-development-notes/css-text-styling-pseudo-classes-f369603383ba?source=rss----1ae01ac6adc8---4</link>
            <guid isPermaLink="false">https://medium.com/p/f369603383ba</guid>
            <category><![CDATA[pseudo-class]]></category>
            <category><![CDATA[text-styling]]></category>
            <category><![CDATA[text-styling-in-css]]></category>
            <category><![CDATA[pseudo-classes-in-css]]></category>
            <category><![CDATA[text-hover-effect]]></category>
            <dc:creator><![CDATA[TARUN KUMAR]]></dc:creator>
            <pubDate>Tue, 26 Jul 2022 15:22:43 GMT</pubDate>
            <atom:updated>2022-07-28T17:17:26.390Z</atom:updated>
            <content:encoded><![CDATA[<h3>CSS — Text Styling</h3><figure><img alt="CSS — Text Styling" src="https://cdn-images-1.medium.com/max/1024/1*ujDcUTYCaw13pB_64mLKSQ.png" /><figcaption>CSS — Text Styling</figcaption></figure><p>We have <strong>text styling</strong> in the HTML section but it’s much better to do all the styling with CSS and it makes the actual content looks less messy when the styling is not in the element. You can use the following properties to style the text:</p><p>1. Bold</p><pre>font-weight: 900;</pre><p>2. Italic</p><pre>font-style: italic;</pre><p>3. Underlined</p><pre>text-decoration: underline;</pre><p>4. Big text</p><pre>font-size: 200%;</pre><p>You can select the space between the line(usually 1.5–2)</p><pre>line-height: 5;</pre><figure><img alt="CSS Text Styling Code" src="https://cdn-images-1.medium.com/max/1024/1*ZvHT3by-paGEkgN2cH6r5Q.png" /><figcaption>CSS Text Styling Code</figcaption></figure><figure><img alt="CSS Text Styling Output" src="https://cdn-images-1.medium.com/max/1024/1*PbAQSL-ppTIAAuiQg4Nf8g.png" /><figcaption>CSS Text Styling Output</figcaption></figure><p>Instructor ~ <a href="https://medium.com/u/a9d49b049f18">TARUN KUMAR</a></p><p><a href="http://lazysyntax.com/">LAZY SYNTAX</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f369603383ba" width="1" height="1" alt=""><hr><p><a href="https://medium.com/learn-web-development-notes/css-text-styling-pseudo-classes-f369603383ba">CSS — Text Styling, Pseudo Classes</a> was originally published in <a href="https://medium.com/learn-web-development-notes">Learn Web Development | For Complete Beginners</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CSS — Change Fonts]]></title>
            <link>https://medium.com/learn-web-development-notes/css-change-fonts-58be4383563f?source=rss----1ae01ac6adc8---4</link>
            <guid isPermaLink="false">https://medium.com/p/58be4383563f</guid>
            <category><![CDATA[google-fonts]]></category>
            <category><![CDATA[css-font]]></category>
            <category><![CDATA[custom-fonts]]></category>
            <category><![CDATA[change-font-size]]></category>
            <category><![CDATA[change-font-on-website]]></category>
            <dc:creator><![CDATA[TARUN KUMAR]]></dc:creator>
            <pubDate>Mon, 25 Jul 2022 14:44:41 GMT</pubDate>
            <atom:updated>2022-07-25T14:44:41.827Z</atom:updated>
            <content:encoded><![CDATA[<h3>CSS — Change Fonts</h3><figure><img alt="CSS Fonts" src="https://cdn-images-1.medium.com/max/1024/1*bFS0x_ZeUhLBnVIbS9OFBg.png" /><figcaption>CSS Fonts</figcaption></figure><p>Let’s change the <strong>font </strong>of our content. Use property:</p><pre>font-family: fantasy;</pre><p>You can use some fonts that are already available in your system. Check them out. You can also google <strong>“web safe fonts”</strong> which will provide you with fonts that can be accessed by almost every web browser.<br>Most common are Sarif (with little ticks) and sans-serif (without little ticks)</p><p>Now you can see that most of them contain three different fonts. this is actually a feature of CSS which is also known as <strong>“fallback”</strong>. It actually checks if the first font is available on the user’s system or not. If it’s available then it will show this font but if not then it will try the second one and the same for the third one which is a standard serif or sans-serif font which is available on every system.</p><p>If you don’t find a font that you want to use on your website in web-safe fonts then you can also use <strong>google fonts</strong>. Search this: <strong>“Google Fonts”</strong><br>You will find a lot of font options here. You can also search for a specific font or filter them.</p><figure><img alt="Google Fonts" src="https://cdn-images-1.medium.com/max/1024/1*VFoLwK74k2ba4dBx9OkbDQ.png" /><figcaption>Google Fonts</figcaption></figure><p>Click on any style that you link and choose the style you want to use. Choose the style again from the list and then click on <strong>“show selected families”</strong> in the upper left corner with three squares and a plus sign. Click on embed and copy the link. Paste it into your stylesheet and you are good to use that font in your webpage. Below the link, you can see the option of CSS rules. Here you can see what you need to input in the font-family property to use this font.</p><p>Try using different fonts in your webpage and have fun.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58be4383563f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/learn-web-development-notes/css-change-fonts-58be4383563f">CSS — Change Fonts</a> was originally published in <a href="https://medium.com/learn-web-development-notes">Learn Web Development | For Complete Beginners</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>