To achieve the desired output, apply the following style:
Modify the width
property in the two classes below:
#balance .used,
#balance .used:hover{
font-weight: bold;
width: 80%;
}
#balance .used-limit{
font-weight: bold;
width: 75%;
}
Implement the code provided below:
ul{
margin: 0;
padding: 0;
list-style: none;
}
#balance{
background: #E1ECF4;
border-width: 1px;
border-style: solid;
border-color: #E1ECF4 #E1ECF4 #E1ECF4;
border-radius: 5px;
box-shadow: 0 0 2px rgba(0,0,0,.2);
overflow: hidden;
width: 100%;
}
#balance li{
float: left;
}
#balance a{
padding: .7em 1em .7em 2em;
float: left;
text-decoration: none;
color: #FFF;
position: relative;
text-shadow: 0 1px 0 rgba(255,255,255,.5);
background-color: #697193;
background-image: linear-gradient(to right, #697193, #697193);
}
#balance li:first-child a{
padding-left: 1em;
border-radius: 5px 0 0 5px;
}
#balance a:hover{
background: #697193;
}
#balance a::after,
#balance a::before{
content: "";
position: absolute;
top: 0%;
border-top: 3.4em solid transparent;
border-bottom: 3.4em solid transparent;
border-left: 1em solid;
right: -1em;
}
#balance a::after{
z-index: 2;
border-left-color: #697193;
}
#balance a::before{
border-left-color: #697193;
right: -1.0em;
z-index: 1;
}
#balance a:hover::after{
border-left-color: #697193;
}
#balance .limit,
#balance .limit:hover{
font-weight: bold;
background: none;
color :#000;
}
#balance .used,
#balance .used:hover{
font-weight: bold;
width: 80%;
}
#balance .used-limit{
font-weight: bold;
width: 75%;
}
#balance .limit::after,
#balance .limit::before{
content: normal;
}
<ul id="balance">
<li class="used-limit"><a href="" class="used"><p>Used</p><p>250.00</p></a></li>
<li><a href="" class="limit"><p>Cash Limit</p><p>300.00</p></a></li>
</ul>