
<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Bootstrap 4 buttons Archives - TECHNIG</title>
	<atom:link href="https://www.technig.com/tag/bootstrap-4-buttons/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.technig.com/tag/bootstrap-4-buttons/</link>
	<description>Gateway for IT Experts and Tech Geeks</description>
	<lastBuildDate>Sun, 26 Jul 2020 11:09:51 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>

<image>
	<url>https://www.technig.com/wp-content/uploads/2020/04/32x32.png</url>
	<title>Bootstrap 4 buttons Archives - TECHNIG</title>
	<link>https://www.technig.com/tag/bootstrap-4-buttons/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">162720667</site>	<item>
		<title>Bootstrap Buttons Complete Guide for Web Developers</title>
		<link>https://www.technig.com/bootstrap-4-buttons-complete-guide/</link>
					<comments>https://www.technig.com/bootstrap-4-buttons-complete-guide/#respond</comments>
		
		<dc:creator><![CDATA[Gull AQA]]></dc:creator>
		<pubDate>Mon, 16 Oct 2017 09:30:00 +0000</pubDate>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Bootstrap]]></category>
		<category><![CDATA[Bootstrap 4 buttons]]></category>
		<category><![CDATA[Bootstrap components]]></category>
		<category><![CDATA[Freelance Web Developer]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[Small Business Web Design]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Design Classes Online]]></category>
		<category><![CDATA[Web Designing]]></category>
		<category><![CDATA[Web Developer]]></category>
		<category><![CDATA[Web Development Courses]]></category>
		<guid isPermaLink="false">https://www.technig.com/?p=12195</guid>

					<description><![CDATA[<div style="margin-bottom:20px;"><img width="840" height="420" src="https://www.technig.com/wp-content/uploads/2017/10/bootstrap-button-styles1.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Bootstrap 4 Buttons" decoding="async" fetchpriority="high" srcset="https://www.technig.com/wp-content/uploads/2017/10/bootstrap-button-styles1.png 840w, https://www.technig.com/wp-content/uploads/2017/10/bootstrap-button-styles1-300x150.png 300w, https://www.technig.com/wp-content/uploads/2017/10/bootstrap-button-styles1-768x384.png 768w" sizes="(max-width: 840px) 100vw, 840px" /></div>
<p>Buttons are one of the most useful components that are being used for various purposes like Showing, hiding submitting and much more. Bootstrap 4 includes several types of buttons which each serving its own semantic purpose, with a few extra functionalities including different colours, different sizes, and different states. let&#8217;s find out more about the [&#8230;]</p>
<p>The post <a href="https://www.technig.com/bootstrap-4-buttons-complete-guide/">Bootstrap Buttons Complete Guide for Web Developers</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div style="margin-bottom:20px;"><img width="840" height="420" src="https://www.technig.com/wp-content/uploads/2017/10/bootstrap-button-styles1.png" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="Bootstrap 4 Buttons" decoding="async" loading="lazy" srcset="https://www.technig.com/wp-content/uploads/2017/10/bootstrap-button-styles1.png 840w, https://www.technig.com/wp-content/uploads/2017/10/bootstrap-button-styles1-300x150.png 300w, https://www.technig.com/wp-content/uploads/2017/10/bootstrap-button-styles1-768x384.png 768w" sizes="(max-width: 840px) 100vw, 840px" /></div><p>Buttons are one of the most useful components that are being used for various purposes like Showing, hiding submitting and much more. Bootstrap 4 includes several types of buttons which each serving its own semantic purpose, with a few extra functionalities including different colours, different sizes, and different states. let&#8217;s find out more about the bootstrap 4 buttons.</p>
<h2>Buttons in Bootstrap</h2>
<p>Bootstrap 4 has different classes for the buttons that allow us to have control over its colour, state, size. These buttons are normally being used with  the  &lt;a&gt;, &lt;input&gt; and &lt;buttons&gt; elements but can be used with any elements.</p>
<p>In Bootstrap the <span style="color: #ff6600;">.btn </span>class define a button. which are mostly used with the &lt;button&gt; element.</p>
<p>Define a button in Bootstrap as below</p>
<pre class="theme:sublime-text lang:xhtml decode:true" title="Defining Button ">&lt;button type="button" class="btn"&gt;Button&lt;/button&gt;
</pre>
<h3>Bootstrap 4 Buttons: Color</h3>
<p>Like many other components of Bootstrap 4, the buttons component has different classes for styling the button.  It basically includes the following classes for the colours.</p>
<pre class="theme:sublime-text lang:xhtml decode:true" title="Bootstrap 4 Buttons: Example">&lt;button type="button" class="btn btn-primary"&gt;Primary&lt;/button&gt;
&lt;button type="button" class="btn btn-secondary"&gt;Secondary&lt;/button&gt;
&lt;button type="button" class="btn btn-success"&gt;Success&lt;/button&gt;
&lt;button type="button" class="btn btn-danger"&gt;Danger&lt;/button&gt;
&lt;button type="button" class="btn btn-warning"&gt;Warning&lt;/button&gt;
&lt;button type="button" class="btn btn-info"&gt;Info&lt;/button&gt;
&lt;button type="button" class="btn btn-light"&gt;Light&lt;/button&gt;
&lt;button type="button" class="btn btn-dark"&gt;Dark&lt;/button&gt;
&lt;button type="button" class="btn btn-link"&gt;Link&lt;/button&gt;

</pre>
<p>The Result will be as the below</p>
<p><a href="https://www.technig.com/wp-content/uploads/2017/10/Bootstrap-4-buttons.jpg"><img decoding="async" class="alignnone wp-image-12198 size-full" src="https://www.technig.com/wp-content/uploads/2017/10/Bootstrap-4-buttons.jpg" alt="Bootstrap 4 buttons" width="752" height="105" srcset="https://www.technig.com/wp-content/uploads/2017/10/Bootstrap-4-buttons.jpg 752w, https://www.technig.com/wp-content/uploads/2017/10/Bootstrap-4-buttons-300x42.jpg 300w, https://www.technig.com/wp-content/uploads/2017/10/Bootstrap-4-buttons-750x105.jpg 750w" sizes="(max-width: 752px) 100vw, 752px" /></a></p>
<h3> Sizes In Bootstrap 4 Buttons</h3>
<p>Bootstrap has it too easy to bring changes to the size or styles of your components. There are 5 available size for the buttons in bootstraps which includes  large ( <span style="color: #ffcc00;">.<span style="color: #ff9900;">btn-lg</span></span> ), Medium (<span style="color: #ff9900;"> .btn-md</span> ), Small ( <span style="color: #ff9900;">.btn-sm</span> ), and the ( <span style="color: #ff9900;">.btn-block</span> ) Block level button which spans the entire width of the parent element.</p>
<p>Note: Bootstrap 4 has dropped the  <span style="color: #ff6600;">.btn-xs</span> extra small size button.</p>
<pre class="theme:sublime-text lang:xhtml decode:true" title="Bootstrap Buttons Sizes">&lt;button type="button" class="btn btn-success btn-sm"&gt;Small&lt;/button&gt;
&lt;button type="button" class="btn btn-success"&gt;Default&lt;/button&gt;
&lt;button type="button" class="btn btn-success btn-lg"&gt;Large&lt;/button&gt;
&lt;button type="button" class="btn btn-primary btn-block"&gt;Block Level button &lt;/button&gt;</pre>
<p><a href="https://www.technig.com/wp-content/uploads/2017/10/Bootstrap-4-button-Sizes-1.jpg"><img decoding="async" class="alignnone wp-image-12237 size-full" src="https://www.technig.com/wp-content/uploads/2017/10/Bootstrap-4-button-Sizes-1.jpg" alt="Bootstrap 4 button Sizes" width="241" height="61" /></a></p>
<p><a href="https://www.technig.com/wp-content/uploads/2017/10/Bootstrap-4-button-block-.jpg"><img loading="lazy" decoding="async" class="alignnone wp-image-12200 size-full" src="https://www.technig.com/wp-content/uploads/2017/10/Bootstrap-4-button-block-.jpg" alt="Bootstrap 4 Button Block" width="752" height="65" srcset="https://www.technig.com/wp-content/uploads/2017/10/Bootstrap-4-button-block-.jpg 752w, https://www.technig.com/wp-content/uploads/2017/10/Bootstrap-4-button-block--300x26.jpg 300w, https://www.technig.com/wp-content/uploads/2017/10/Bootstrap-4-button-block--750x65.jpg 750w" sizes="(max-width: 752px) 100vw, 752px" /></a></p>
<h3>States of Buttons Bootstrap 4</h3>
<p>There are two available states in the bootstrap, the active state, and the disabled state.</p>
<h5>1- Active state:</h5>
<p>In the Active state, the buttons will appear pressed ( darker ). you can define it with the <span style="color: #ff9900;">.active</span> class followed by <span style="color: #ff9900;">aria-pressed=&#8221; true&#8221;</span> attribute.</p>
<pre class="theme:sublime-text lang:xhtml decode:true" title="Active Buttons">&lt;a href="#" class="btn btn-primary btn-lg active" role="button" aria-pressed="true"&gt;Primary link&lt;/a&gt;
&lt;a href="#" class="btn btn-secondary btn-lg active" role="button" aria-pressed="true"&gt;Link&lt;/a&gt;</pre>
<p><a href="https://www.technig.com/wp-content/uploads/2017/10/Bootstrap-Active-Buttons.jpg"><img loading="lazy" decoding="async" class="alignnone wp-image-12204 size-full" src="https://www.technig.com/wp-content/uploads/2017/10/Bootstrap-Active-Buttons.jpg" alt="Bootstrap Active Buttons" width="663" height="120" srcset="https://www.technig.com/wp-content/uploads/2017/10/Bootstrap-Active-Buttons.jpg 663w, https://www.technig.com/wp-content/uploads/2017/10/Bootstrap-Active-Buttons-300x54.jpg 300w" sizes="(max-width: 663px) 100vw, 663px" /></a></p>
<h5>Disabled state</h5>
<p>The Disabled state is being used to look inactive. for the buttons, you don&#8217;t need to define a <span style="color: #ff9900;">.dsabled</span> class, but for the buttons with &lt;a&gt; elements its different, you should use the <span style="color: #ff9900;">.disabled</span> class to make it look disabled.</p>
<pre class="theme:sublime-text lang:default decode:true">&lt;button type="button" class="btn btn-lg btn-primary" disabled&gt;Primary button&lt;/button&gt;
&lt;!-- Link Disabled  ---&gt;
&lt;a href="#"class="btn btn-secondary btn-lg disabled" role="button" aria-disabled="true"&gt;Button&lt;/a&gt;</pre>
<p><a href="https://www.technig.com/wp-content/uploads/2017/10/Bootstrap-4-Disabled-buttons.jpg"><img loading="lazy" decoding="async" class="aligncenter wp-image-12206 size-medium" src="https://www.technig.com/wp-content/uploads/2017/10/Bootstrap-4-Disabled-buttons-300x77.jpg" alt="Bootstrap 4 Disabled buttons" width="300" height="77" srcset="https://www.technig.com/wp-content/uploads/2017/10/Bootstrap-4-Disabled-buttons-300x77.jpg 300w, https://www.technig.com/wp-content/uploads/2017/10/Bootstrap-4-Disabled-buttons.jpg 345w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<h3> Bootstrap 4 Outline Buttons</h3>
<p>Do you like me and many others like buttons with hefty background colours? fortunately bootstrap has brought us the .btn-outline classes to remove background images and colours of any buttons.</p>
<p>to to define an outline button, just add the <span style="color: #ff9900;">.btn-outline</span> classes to your buttons classes as below.</p>
<pre class="theme:sublime-text lang:xhtml decode:true " title="Bootstrap Outline Buttons Examples">&lt;button type="button" class="btn btn-outline-primary"&gt;Primary&lt;/button&gt;
&lt;button type="button" class="btn btn-outline-secondary"&gt;Secondary&lt;/button&gt;
&lt;button type="button" class="btn btn-outline-success"&gt;Success&lt;/button&gt;
&lt;button type="button" class="btn btn-outline-danger"&gt;Danger&lt;/button&gt;
&lt;button type="button" class="btn btn-outline-warning"&gt;Warning&lt;/button&gt;
&lt;button type="button" class="btn btn-outline-info"&gt;Info&lt;/button&gt;
&lt;button type="button" class="btn btn-outline-light"&gt;Light&lt;/button&gt;
&lt;button type="button" class="btn btn-outline-dark"&gt;Dark&lt;/button&gt;</pre>
<p><a href="https://www.technig.com/wp-content/uploads/2017/10/bootstrap-4-outline-buttons.jpg"><img loading="lazy" decoding="async" class="aligncenter wp-image-12216 size-full" src="https://www.technig.com/wp-content/uploads/2017/10/bootstrap-4-outline-buttons.jpg" alt="Bootstrap 4 Outline Buttons" width="650" height="58" srcset="https://www.technig.com/wp-content/uploads/2017/10/bootstrap-4-outline-buttons.jpg 650w, https://www.technig.com/wp-content/uploads/2017/10/bootstrap-4-outline-buttons-300x27.jpg 300w" sizes="(max-width: 650px) 100vw, 650px" /></a></p>
<h3> Using Icons With Bootstrap 4 Buttons</h3>
<pre class="theme:sublime-text lang:xhtml decode:true">    &lt;a href="#" class="btn btn-success btn-lg"&gt;
      &lt;span class="glyphicon glyphicon-print"&gt;&lt;/span&gt; Print 
    &lt;/a&gt;</pre>
<p><a href="https://www.technig.com/wp-content/uploads/2017/10/using-icons-with-bootstrap-buttons.jpg"><img loading="lazy" decoding="async" class="alignnone wp-image-12219 size-full" src="https://www.technig.com/wp-content/uploads/2017/10/using-icons-with-bootstrap-buttons.jpg" alt="Using Icons With Bootstrap Buttons" width="140" height="57" /></a></p>
<h3>Grouped Buttons</h3>
<p>Display a series of buttons with<span style="color: #ff9900;"> .btn</span> inside the <span style="color: #ff9900;">.btn-group </span> as below:</p>
<div class="btn-group btn-group-lg btn-group-vertical" role="group"><button class="btn btn-secondary" type="button">Button</button> <button class="btn btn-secondary" type="button">Button</button> <button class="btn btn-secondary" type="button">Button</button></div>
<ul>
<li>Use the class <span style="color: #ff6600;">.btn-group-vertical </span>to create a vertical button group.</li>
<li>Add the class <span style="color: #ff6600;">.btn-group-*</span> to control the size of your grouped buttons.</li>
</ul>
<div class="btn-group btn-group-lg btn-group-vertical" role="group"> </div>
<pre class="theme:sublime-text lang:xhtml decode:true"> </pre>
<div class="btn-group btn-group-lg btn-group-vertical" role="group"><button class="btn btn-secondary" type="button">Button</button> <button class="btn btn-secondary" type="button">Button</button> <button class="btn btn-secondary" type="button">Button</button><a href="https://www.technig.com/wp-content/uploads/2017/10/Bootstrap-4-Grouped-Buttons-Display-vertically-Plus-Large-Size.jpg"><img loading="lazy" decoding="async" class="aligncenter wp-image-12224 size-medium" src="https://www.technig.com/wp-content/uploads/2017/10/Bootstrap-4-Grouped-Buttons-Display-vertically-Plus-Large-Size-117x300.jpg" alt="Bootstrap 4 Grouped Buttons Display vertically Plus Large Size" width="117" height="300" srcset="https://www.technig.com/wp-content/uploads/2017/10/Bootstrap-4-Grouped-Buttons-Display-vertically-Plus-Large-Size-117x300.jpg 117w, https://www.technig.com/wp-content/uploads/2017/10/Bootstrap-4-Grouped-Buttons-Display-vertically-Plus-Large-Size.jpg 121w" sizes="(max-width: 117px) 100vw, 117px" /></a></div>
<h4>Conclusion</h4>
<p>That&#8217;s it about the Bootstrap 4 buttons. This article is a comprehensive guide about the Bootstrap 4 buttons. If you are interested to learn more about details of the bootstrap Components and find out more about bootstrap 4 read the bootstrap 4 <a href="https://getbootstrap.com/docs/4.0/getting-started/introduction/" target="_blank" rel="noopener noreferrer">documentation </a>through their website.</p>


<p></p>
<p>The post <a href="https://www.technig.com/bootstrap-4-buttons-complete-guide/">Bootstrap Buttons Complete Guide for Web Developers</a> appeared first on <a href="https://www.technig.com">TECHNIG</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.technig.com/bootstrap-4-buttons-complete-guide/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">12195</post-id>	</item>
	</channel>
</rss>
