<?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"><channel><title><![CDATA[Abi Rana | Graphic Designer and Front-end Web Developer in Biratnagar, Nepal]]></title><description><![CDATA[Abi Rana is a front-end developer from Biratnagar, Nepal. He is professional at UI/UX design, web development, web animation and interactive web development.]]></description><link>https://blog.abirana.com</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Apr 2026 12:19:09 GMT</lastBuildDate><atom:link href="https://blog.abirana.com/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[All the class name changes migrating from Bootstrap 4 to Bootstrap 5]]></title><description><![CDATA[Hi guys, I've been working on  Pinegrow's Bootstrap blocks and templates, currently to migrate from Bootstrap 4 to Bootstrap 5. And through the process, I guess I went through almost all of the classes and changes. Therefore, I thought it would be he...]]></description><link>https://blog.abirana.com/how-to-migrate-convert-bootstra-4-to-bootstrap-5</link><guid isPermaLink="true">https://blog.abirana.com/how-to-migrate-convert-bootstra-4-to-bootstrap-5</guid><category><![CDATA[Bootstrap]]></category><category><![CDATA[migration]]></category><category><![CDATA[Web Development]]></category><category><![CDATA[CSS Frameworks]]></category><category><![CDATA[classes]]></category><dc:creator><![CDATA[Abi Rana]]></dc:creator><pubDate>Thu, 11 Mar 2021 18:22:50 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1615727180231/-ECyD0-C2.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Hi guys, I've been working on  <a target="_blank" href="https://pinegrow.com/docs/bootstrap-blocks/bootstrap-4-blocks/">Pinegrow's Bootstrap blocks and templates</a>, currently to migrate from Bootstrap 4 to Bootstrap 5. And through the process, I guess I went through almost all of the classes and changes. Therefore, I thought it would be helpful to share those changes. If you are thinking how to migrate from Bootstrap v4 to v5, this list can be handy; so you can just <strong>search and replace</strong> them.</p>
<table>
<thead>
<tr>
<td>Utilities</td><td>Change</td></tr>
</thead>
<tbody>
<tr>
<td>Paddings</td><td>pl &gt; ps <br /> pr &gt; pe</td></tr>
<tr>
<td>Margins</td><td>ml &gt; ms <br /> mr &gt; me</td></tr>
<tr>
<td>Gutters</td><td>no-gutters &gt; g-0</td></tr>
<tr>
<td>Font Styles</td><td>font-weight- &gt; fw- <br /> font-style- &gt; fst-</td></tr>
<tr>
<td>Alignments</td><td>text-left &gt; text-start <br /> text-right &gt; text-end</td></tr>
<tr>
<td>Ratio/Embed</td><td>embed-responsive &gt; ratio <br /> embed-responsive-16by9 &gt; ratio-16x9</td></tr>
<tr>
<td>Badges</td><td>badge-primary &gt; bg-primary <br /> badge-pill &gt; rounded-pill</td></tr>
<tr>
<td>Form</td><td>form-group &gt; mb-3 (as alternative) <br /> form-row &gt; row</td></tr>
<tr>
<td>Border</td><td>border-left &gt; border-start <br /> border-right &gt; border-end</td></tr>
<tr>
<td>Border Radius</td><td>rounded-lg &amp; rounded-sm &gt; rounded-1, rounded-2 &amp; rounded-3</td></tr>
<tr>
<td>Button Block</td><td>btn-block &gt; d-block w-100 (as alternative)</td></tr>
<tr>
<td>Visually Hidden</td><td>sr-only &gt; visually-hidden</td></tr>
</tbody>
</table>
<h3 id="js-data-name-changes-for-menu-triggers-and-dropdown">JS data name changes for menu triggers and dropdown</h3>
<table>
<thead>
<tr>
<td>Changes</td></tr>
</thead>
<tbody>
<tr>
<td>data- &gt; data-bs-</td></tr>
<tr>
<td>data-ride &gt; data-bs-ride</td></tr>
<tr>
<td>data-target &gt; data-bs-target</td></tr>
<tr>
<td>data-slide &gt; data-bs-slide</td></tr>
<tr>
<td>data-togglet &gt; data-bs-toggle</td></tr>
</tbody>
</table>
<h3 id="few-other-pointers">Few other pointers</h3>
<ul>
<li>All class names with <strong>left/right</strong> and <strong>l/r</strong> has been changed to <strong>start/end</strong> and <strong>s/e</strong></li>
<li>Dropped classes - <strong>.media</strong>, <strong>.from-group</strong>, <strong>.from-row</strong>, <strong>.from-inline</strong></li>
<li>Form labels now require the <strong>.form-label</strong> class, which has margin bottom applied</li>
<li><strong>Negative margins</strong> are disabled in Bootstrap 5</li>
<li>Columns doesn’t have <strong>position: relative</strong> property</li>
<li>Form row layout changed</li>
<li>Input group layout changed</li>
<li>Navbar link <strong>active</strong> class is set on the link itself not on the parent</li>
<li>If you put a <strong>column</strong> outside a <strong>row</strong>, always set <strong>col-* class</strong> for all the viewport that you need to cover. Mostly should be <strong>col-12</strong> for the smallest viewport.</li>
</ul>
<p><strong>Disclaimer:</strong> This doest not cover everything that has been updated in Bootstrap 5. My main focus was all of the classes that has been changed and throughout the project I think I've encountered most of the classes. I made this list and used <strong>search and replace</strong> method to rename all those classes. I work on VSCode, which let me search and replace within the entire folder. But beware, if you make a mistake you may not be able to undo. So do make a backup of your project.</p>
<p>I'll try to write about other changes but for now if you want to know more about all other changes please go through the Bootstrap 5 documentation here, https://getbootstrap.com/docs/5.0/migration/</p>
<p><strong><em>Do let me know if you see something is missing.</em></strong></p>
<h4 id="some-closing-thoughts">Some closing thoughts</h4>
<p>This is my first ever approach on officially blogging. I've been thinking of blogging for years; always wanted to do it on my own site, but what the heck. So today, I thought to use <strong>Hashnode's</strong> platform and just start writing. I think this is a good info to put out in the world, since I didn't find much when I was looking for it. Your support will be really appreciated.</p>
]]></content:encoded></item></channel></rss>