<?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/"
	
xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
>

<channel>
	<title>tab - Bipon's Diary</title>
	<atom:link href="https://biponnotes.iglyphic.com/tag/tab/feed/" rel="self" type="application/rss+xml" />
	<link>https://biponnotes.iglyphic.com</link>
	<description>Do good for others. It will come back in unexpected ways.</description>
	<lastBuildDate>Sun, 19 Jan 2020 16:06:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.9.10</generator>
<site xmlns="com-wordpress:feed-additions:1">168324471</site>	<item>
		<title>Create tab layout  for website using HTML CSS and JavaScript</title>
		<link>https://biponnotes.iglyphic.com/create-tab-layout-for-website-using-html-css-and-javascript/</link>
					<comments>https://biponnotes.iglyphic.com/create-tab-layout-for-website-using-html-css-and-javascript/#respond</comments>
		
		<dc:creator><![CDATA[bipon68]]></dc:creator>
		<pubDate>Sun, 19 Jan 2020 16:03:03 +0000</pubDate>
				<category><![CDATA[ওয়েব ডেভেলপমেন্ট]]></category>
		<category><![CDATA[ফ্রন্ট এন্ড ডেভেলপমেন্ট]]></category>
		<category><![CDATA[layout]]></category>
		<category><![CDATA[tab]]></category>
		<guid isPermaLink="false">https://bipon.me/?p=389</guid>

					<description><![CDATA[<p>In this tutorial you will learn to create a tab layout for website using HTML CSS and JS. HTML CSS JS Source Code Ref: CSS transform Property , CSS Transitions</p>
<p>The post <a href="https://biponnotes.iglyphic.com/create-tab-layout-for-website-using-html-css-and-javascript/">Create tab layout  for website using HTML CSS and JavaScript</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></description>
										<content:encoded><![CDATA[<p> In this tutorial you will learn to create a <code>tab layout</code> for website using <code>HTML</code> <code>CSS</code> and <code>JS</code>. </p>



<p>HTML</p>



<pre class="wp-block-code"><code>&lt;div class="hero">
  &lt;div class="btn-box">
    &lt;button id="btn1" onclick="openHTML()">HTML&lt;/button>
    &lt;button id="btn2" onclick="openCSS()">CSS&lt;/button>
    &lt;button id="btn3" onclick="openJS()">Javascript&lt;/button>
  &lt;/div>
  &lt;div id="content1" class="content">
    &lt;div class="content-left">
      &lt;h2>Left HTML&lt;/h2>
      &lt;p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially u&lt;/p>
    &lt;/div>
    &lt;div class="content-right">
      &lt;img src="https://user-images.githubusercontent.com/194400/49531010-48dad180-f8b1-11e8-8d89-1e61320e1d82.png" alt="">
    &lt;/div>
  &lt;/div>
  &lt;div id="content2" class="content">
    &lt;div class="content-left">
      &lt;h2>Left CSS&lt;/h2>
      &lt;p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially u&lt;/p>
    &lt;/div>
    &lt;div class="content-right">
      &lt;img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRHrWdycKUB4lP9WYjdpPJdLXTUaDbdaYZ_LRcplbhLet-54LJ1&amp;s" alt="">
    &lt;/div>
  &lt;/div>
  &lt;div id="content3" class="content">
    &lt;div class="content-left">
      &lt;h2>Left JS&lt;/h2>
      &lt;p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially u&lt;/p>
    &lt;/div>
    &lt;div class="content-right">
      &lt;img src="https://user-images.githubusercontent.com/194400/49531010-48dad180-f8b1-11e8-8d89-1e61320e1d82.png" alt="">
    &lt;/div>
  &lt;/div>
&lt;/div></code></pre>



<p>CSS</p>



<pre class="wp-block-code"><code>.hero{
  width: 80%;
  height: 450px;
  position: relative;
  margin: 100px auto;
  overflow: hidden;
}
.btn-box{
  display: flex;
  border: 1px solid #ccc;
}
.btn-box button{
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  margin-right: 50px;
  font-size: 20px;
  font-weight: bold;
}
.content-right img{
  width: 250px;
}
.content{
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 5% auto;
  position: absolute;
  transform:translateX(100%);
  transition: 0.3s;
}
.content-left{
  flex-basis: 50%;
  text-align: left;
}
.content-left p{
  font-size: 13px;
  padding: 10px 0;
}
.content-right{
  flex-basis: 50%;
  text-align: center;
}
#content1{
  transform: translateX(0px);
}
#btn1{
  color: #ff7846;
}</code></pre>



<p>JS</p>



<pre class="wp-block-code"><code>var content1 = document.getElementById("content1");
var content2 = document.getElementById("content2");
var content3 = document.getElementById("content3");
var btn1 = document.getElementById("btn1");
var btn2 = document.getElementById("btn2");
var btn3 = document.getElementById("btn3");
function openHTML(){
  content1.style.transform = "translateX(0)";
  content2.style.transform = "translateX(100%)";
  content3.style.transform = "translateX(100%)";
  btn1.style.color = "#ff7846";
  btn2.style.color = "#000";
  btn3.style.color = "#000";
  content1.style.transitionDelay = "0.3s";
  content2.style.transitionDelay = "0s";
  content3.style.transitionDelay = "0s";
}
function openCSS(){
  content1.style.transform = "translateX(100%)";
  content2.style.transform = "translateX(0)";
  content3.style.transform = "translateX(100%)";
    btn1.style.color = "#000";
    btn2.style.color = "#ff7846";
    btn3.style.color = "#000";
  content1.style.transitionDelay = "0s";
  content2.style.transitionDelay = "0.3s";
  content3.style.transitionDelay = "0s";
}
function openJS(){
  content1.style.transform = "translateX(100%)";
  content2.style.transform = "translateX(100%)";
  content3.style.transform = "translateX(0)";
    btn1.style.color = "#000";
    btn2.style.color = "#000";
    btn3.style.color = "#ff7846";
  content1.style.transitionDelay = "0s";
  content2.style.transitionDelay = "0s";
  content3.style.transitionDelay = "0.3s";
}</code></pre>



<p><a href="https://codepen.io/bipon68/pen/yLyQLzE">Source Code</a>  </p>



<p>Ref: <a href="https://css-tricks.com/almanac/properties/t/transform/">CSS transform Property</a> , <a href="https://css-tricks.com/almanac/properties/t/transition/">CSS Transitions</a></p><p>The post <a href="https://biponnotes.iglyphic.com/create-tab-layout-for-website-using-html-css-and-javascript/">Create tab layout  for website using HTML CSS and JavaScript</a> first appeared on <a href="https://biponnotes.iglyphic.com">Bipon's Diary</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://biponnotes.iglyphic.com/create-tab-layout-for-website-using-html-css-and-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">389</post-id>	</item>
	</channel>
</rss>
