How to create a responsive tab with css and html

 Creating a responsive tab with html and css

So we will create a tab with html and css. Tab will show at
the top of the page. We will add some shadow of its bottom border.

Here is the tab





Here is the code

<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
.tab
{
position :fixed ;
top:0;
left :0;
width:100%;
height40px;
border-bottom1px solid #ddd;
background: #fff;
  margin0rem 0 1rem 0;
}

.inverse
{
background: #222;
}



</style>
</head>
<body>
<div class="tab inverse "></div>
</body>
</html>

Comments

Popular posts from this blog

How to create a list group with css

Getting Started with JavaScript

JavaScript fundamentals