Highlight your Heading text for website using CSS. Heading is important thing in every website. You should Highlight your Headings. So this is a small example to highlight the text using css. This is one of the nice example you can change the different colors according to your website color combination.
Style
.div-con
{
width:65%;
}
.heading1
{
background: -webkit-gradient(linear, 18% 100%, 18% 15%, from(#6f001a), to(#a80329));
background: -moz-linear-gradient(52% 82% 89deg, #6f001a, #a80329 76%);
background-color: #900222;
font-size: 16px;
text-transform: uppercase;
padding: 8px;
padding-left: 10px;
color: #FFFFFF;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
text-decoration:none;
}
.heading2
{
border-left: 4px solid #ffb900;
border-top:1px solid #eee;
padding:10px;
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
font-size: 16px;
text-transform: uppercase;
font-weight:bold;
text-decoration:none;
}
.heading3
{
color: #fff;
font-size: 16px;
line-height: 1.3;
text-align: left;
border-radius: 10px;
background-color: #f16625;
padding: 10px 20px;
box-shadow: 0px 7px 0px 0px #a0410d;
font-weight: normal;
text-transform: uppercase;
text-decoration:none;
}
.heading4
{
background-color:#01A89E;
padding:10px;
font-size: 16px;
color:#fff;
text-transform: uppercase;
text-decoration:none;
}
{
width:65%;
}
.heading1
{
background: -webkit-gradient(linear, 18% 100%, 18% 15%, from(#6f001a), to(#a80329));
background: -moz-linear-gradient(52% 82% 89deg, #6f001a, #a80329 76%);
background-color: #900222;
font-size: 16px;
text-transform: uppercase;
padding: 8px;
padding-left: 10px;
color: #FFFFFF;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
text-decoration:none;
}
.heading2
{
border-left: 4px solid #ffb900;
border-top:1px solid #eee;
padding:10px;
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
font-size: 16px;
text-transform: uppercase;
font-weight:bold;
text-decoration:none;
}
.heading3
{
color: #fff;
font-size: 16px;
line-height: 1.3;
text-align: left;
border-radius: 10px;
background-color: #f16625;
padding: 10px 20px;
box-shadow: 0px 7px 0px 0px #a0410d;
font-weight: normal;
text-transform: uppercase;
text-decoration:none;
}
.heading4
{
background-color:#01A89E;
padding:10px;
font-size: 16px;
color:#fff;
text-transform: uppercase;
text-decoration:none;
}
HTML
<h3 class="sidebar-header">Decorate Header text using css</h3>
<div class="div-con">
<br />
<h2 class="heading1">The section Header</h2> <br />
<h2 class="heading2">The section Header</h2> <br />
<h2 class="heading3">The section Header</h2> <br />
<h2 class="heading4">The section Header</h2> <br />
</div>
<br />
<h2 class="heading1">The section Header</h2> <br />
<h2 class="heading2">The section Header</h2> <br />
<h2 class="heading3">The section Header</h2> <br />
<h2 class="heading4">The section Header</h2> <br />
</div>
0 Comments