I am trying to shift the red border underneath of the black box. How shall I shift the red border?
This is for a css project. In the past I tried to shift the div in html, but the result is unchanged.
#box{
width:150px;
padding:5px;
height:30px;
background-color:#323232;
float:right;
color:white;
text-align:center;
text-transform:uppercase;
}
#border{
border-bottom:2px solid red;
position: relative;
}
<div id="box">Text Goes Inside</div>
<div id="border"></div>
Here how it should look like