Hi,
I am trying to create the below effect on my H1 classes, but can’t work out how to do it. I can create the grey line, but not the shorter blue line above it.
Does anyone know how I would do this?
Thanks
Hi,
I am trying to create the below effect on my H1 classes, but can’t work out how to do it. I can create the grey line, but not the shorter blue line above it.
Does anyone know how I would do this?
Thanks
One way is like this:
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<style>
h1{
font-size:3rem;
padding:10px 0;
margin:1rem auto;
border-bottom:1px solid #777;
max-width:980px;
background:#f9f9f9;
position:relative;
}
h1:before{
content:"";
position:absolute;
bottom:0;
left:0;
height:3px;
background:lightblue;
width:5%;/* adjust to suit*/
}
</style>
</head>
<body>
<h1>Heading Text goes here</h1>
</body>
</html>
What code do you have so far?
The short blue line could probably be done with a gradient border.
Thanks, that worked
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.