create responsive text with css and html

How to create responsive text with html and css

So we will create a responsive text with html and css with 
a background and with out background. We will also create
responsive Heading tags.

Here is the text.



Here is source code.

<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">

.flow-text
{
font-weight :200;
font-size :20px;
color:#222;
padding:5px;
border-radius :3px ;
font-family: Arial, Helvetica, sans-serif
}
.bg-color{
background :rgba(140,20,20,0.1)
}
h1h2h3h4h5h6
{
font-weight :330;
font-family: Arial, Helvetica, sans-serif;
line-height :20px;
}

</style>
</head>
<body>
<p class="flow-text">This is flow-text class without background </p>
<p class="flow-text bg-color">This is flow-text class with  background </p>


<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>
<h4>Heading 4 </h4>
<h5>Heading 5</h5>
<h6>Heading 6</h6>
</body>
</html>

Comments

Popular posts from this blog

Getting Started with JavaScript

JavaScript fundamentals

How to create a list group with css