<?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[Stories by Amit Dwivedi on Medium]]></title>
        <description><![CDATA[Stories by Amit Dwivedi on Medium]]></description>
        <link>https://medium.com/@amitdubey.108?source=rss-89783c28e353------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*knw3wkbAK92RG1XgpzA19A.jpeg</url>
            <title>Stories by Amit Dwivedi on Medium</title>
            <link>https://medium.com/@amitdubey.108?source=rss-89783c28e353------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 07:39:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@amitdubey.108/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[CREATE CUSTOM CHECKBOX AND RADIO BUTTON USING CSS [BEST PRACTICES]]]></title>
            <link>https://medium.com/@amitdubey.108/create-custom-checkbox-and-radio-button-using-css-best-practices-9f0eabf98d57?source=rss-89783c28e353------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f0eabf98d57</guid>
            <category><![CDATA[html5]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[custom-css-module]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[css3]]></category>
            <dc:creator><![CDATA[Amit Dwivedi]]></dc:creator>
            <pubDate>Fri, 18 Jan 2019 13:10:57 GMT</pubDate>
            <atom:updated>2019-01-18T13:10:57.192Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WsFMCnXc-ZeDiosBvLtTAw.jpeg" /><figcaption>Custom checkbox blog by Amit Dwivedi</figcaption></figure><p>I am writing this blog as today i got some challenges while creating custom checkbox and radio button. I found less resources on internet to create custom checkbox using css and the worst thing is that most of them have less support of browser or having div or label dependency.</p><p>So let’s start coding….</p><h3>APPROACH</h3><p><strong>STEP 1-</strong> We will first crate one input , one span(to override input element) and one label followed by a container.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f3df0f78810827872b3d55c3f2dfec86/href">https://medium.com/media/f3df0f78810827872b3d55c3f2dfec86/href</a></iframe><p><strong>STEP 2</strong>- After adding html we will create or update css file.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1ff564f639991b62aa60b94181ee6bf5/href">https://medium.com/media/1ff564f639991b62aa60b94181ee6bf5/href</a></iframe><h3>CSS EXPLANATION -</h3><p>1- Give position relative to your container so that when you apply a absolute position to it’s child it will remain in that container.</p><p>2- Hide your input element using opacity or you can also apply visibility hidden css property and finally apply position absolute so that it will not take any space.</p><p>3- Add css to your custom span like height, width and border property so it’s looks like unchecked checkbox.</p><p>4 Finally add css using pseudo selector on your custom-checkbox-span class, so that it’s looks like a checked checkbox.</p><h3>CUSTOMIZATION</h3><p>1- If you want to apply above code on a radio button just change input type checkbox to radio button and don’t forget to replace ~ sibling selector to ~ css selector.</p><p>2- If you want to handle your checkbox using image just make content css property blank(“ ”) and add a background image using css background-image property.</p><h3>ACCESSIBILITY</h3><p>Don’t worry at all your checkbox still support accessibility and you can access it via tab and checked unchecked using space-bar. If you don’t see a outline on focus just add your custom css for outline or border to your checkbox.</p><h4>— THANK YOU</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f0eabf98d57" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Differences between bootstrap 3 and bootstrap 4]]></title>
            <link>https://medium.com/@amitdubey.108/differences-between-bootstrap-3-and-bootstrap-4-da86a094ec30?source=rss-89783c28e353------2</link>
            <guid isPermaLink="false">https://medium.com/p/da86a094ec30</guid>
            <category><![CDATA[responsive-web-design]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[bootstrap-framework]]></category>
            <category><![CDATA[bootstrap-4]]></category>
            <category><![CDATA[bootstrap]]></category>
            <dc:creator><![CDATA[Amit Dwivedi]]></dc:creator>
            <pubDate>Thu, 09 Aug 2018 11:13:23 GMT</pubDate>
            <atom:updated>2018-08-09T11:29:59.458Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vr5hW7ykUC3l1V1yHa6Rfw.png" /></figure><p>Bootstrap has made major changes in it’s newer version Bootstrap 4. We can categorize the changes in 3 categories —</p><p><strong>1- Grid system changes</strong> — In Bootstrap 3, there are are 4 classes in grid system to handle responsive layout that is — col-xs-, col-sm-, col-md- and col-lg- but in Bootstrap 4 we have 5 classes to manage responsive layout that is — col-, col-sm-, col-md-, col-lg- and col-xl-. Bootstrap 4 discard the col-xs- from the lowest break point and col manage all the devices.</p><pre>&lt;div class=&quot;container&quot;&gt;<br>  &lt;div class=&quot;row&quot;&gt;<br>    &lt;div class=&quot;col&quot;&gt;<br>      1 of 2<br>    &lt;/div&gt;<br>    &lt;div class=&quot;col&quot;&gt;<br>      2 of 2<br>    &lt;/div&gt;<br>  &lt;/div&gt;<br>  &lt;div class=&quot;row&quot;&gt;<br>    &lt;div class=&quot;col&quot;&gt;<br>      1 of 3<br>    &lt;/div&gt;<br>    &lt;div class=&quot;col&quot;&gt;<br>      2 of 3<br>    &lt;/div&gt;<br>    &lt;div class=&quot;col&quot;&gt;<br>      3 of 3<br>    &lt;/div&gt;<br>  &lt;/div&gt;<br>&lt;/div&gt;</pre><p><strong>2- Code concept changes </strong>— In Bootstrap 4, there are number of changes in core concept like Bootstrap 3 uses LESS as CSS Pre-Processor but Bootstrap 4 uses SASS. The second major change is to use Flex-Box feature while creating grid system, Bootstrap 3 uses float and a fixed width to make grid layout but after using flex box there are no need of float. The third change is measurement unit as Bootstrap 3 uses PX as primary measurement unit to define width, height margin and padding but in Bootstrap 4 it uses REM as primary measurement unit.</p><p><strong>3- Changes in built-in classes </strong>— There are few updates in classes which serves the same purpose. For example —</p><p>.img-responsive =&gt; .img-fluid</p><p>.navbar-fixed-top =&gt; .fixed-top</p><p>.input-lg =&gt; .form-control-lg</p><p>.in =&gt; .show</p><p>.breadcrumb =&gt; .breadcrumb-item</p><p>.item =&gt; .carousel-item</p><p>For more info about updates in classes, please refer to the official document link — <a href="http://getbootstrap.com/docs/4.1/components/forms/"><em>http://getbootstrap.com/docs/4.1/components/forms</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da86a094ec30" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript Fetch API for post request, to send the data from a ReactJS form]]></title>
            <link>https://medium.com/@amitdubey.108/javascript-fetch-api-to-send-the-data-from-a-reactjs-form-40cfaff21ae2?source=rss-89783c28e353------2</link>
            <guid isPermaLink="false">https://medium.com/p/40cfaff21ae2</guid>
            <category><![CDATA[forms]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Amit Dwivedi]]></dc:creator>
            <pubDate>Tue, 03 Jul 2018 10:18:19 GMT</pubDate>
            <atom:updated>2018-08-09T07:10:25.338Z</atom:updated>
            <content:encoded><![CDATA[<p>JavaScript Fetch API for post request, to send the data from a ReactJS form</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5pOWol9D1eOchqdOo6Xdmg.jpeg" /></figure><p>// App.js</p><p>import React, { Component } from ‘react’;</p><p>import ‘./App.css’;</p><p>export default class App extends Component{</p><p>constructor(){</p><p>super();</p><p>this.state={ name:’’, email:’’ }</p><p>}</p><p>handleChange = event =&gt;{</p><p>this.setState({ [event.target.name]:event.target.value })</p><p>}</p><p>handleSubmit = event =&gt;{</p><p>event.preventDefault();</p><p>console.log(“User name : “ + this.state.name)</p><p>console.log(“User Email : “ + this.state.email)</p><p>const url =”https://jsonplaceholder.typicode.com/users/”</p><p>const data = { name:this.state.name, email:this.state.email }</p><p>fetch(url, { method: ‘POST’, // or ‘PUT’</p><p>body: JSON.stringify(data), // data can be `string` or {object}!</p><p>headers:{ ‘Content-Type’: ‘application/json’ } })</p><p>.then(res =&gt; res.json())</p><p>.catch(error =&gt; console.error(‘Error:’, error))</p><p>.then(response =&gt; console.log(‘Success:’, response)); }</p><p>render(){</p><p>return(</p><p>&lt;form onSubmit={this.handleSubmit}&gt;</p><p>&lt;input type=”text” name=”name” onChange={this.handleChange} /&gt;</p><p>&lt;input type=”email” name=”email” onChange={this.handleChange} /&gt;</p><p>&lt;input type=”submit” value=”Add user” /&gt; &lt;/form&gt; )</p><p>}</p><p>}</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=40cfaff21ae2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>