html - Text inside border -


i have piece of html/css code use inside angular application want rework can add text solid border.

.colorstripgreen{      padding: 0px;      width: 100%; height: 100%;      border-left: solid;      border-width: 15px;      border-color: #228b22;  }
<div *ngif="level == '4'">    <div class="w3-col" style="width: 14%; white-space:nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 1%;">      <div (click)="populatedropdowns(); getchangelog(); getrequestlog();  mymodal.open();">        <div class="card white">          <div class="card-content grey-text">            <div class="colorstripgreen">              <p>{{surgam}}<br>{{deptam}}</p>            </div>          </div>        </div>        <div class="card white">          <div class="card-content grey-text">            <div class="colorstripgreen">              <p>{{surgpm}}<br>{{deptpm}}</p>            </div>          </div>        </div>      </div>    </div>  </div>

in application shows follows:

enter image description here

what want able edit css , html include number inside solid green box. how can achieve this?

thanks

the following css , html believe saying https://jsfiddle.net/h3aenlkh/

<div *ngif="level == '4'">   <div class="w3-col" style="width: 14%; white-space:nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 1%;">     <div (click)="populatedropdowns(); getchangelog(); getrequestlog();  mymodal.open();">       <div class="card white">         <div class="card-content grey-text">           <div class="colorstripgreen">             <p><span>1</span>{{surgam}}<br>{{deptam}}</p>           </div>         </div>       </div>       <div class="card white">         <div class="card-content grey-text">           <div class="colorstripgreen">             <p><span>1</span>{{surgpm}}<br>{{deptpm}}</p>           </div>         </div>       </div>     </div>   </div> </div> 

and css

.colorstripgreen{     padding: 0px;     width: 100%; height: 100%;     border-left: solid;     border-width: 15px;     border-color: #228b22; }  .colorstripgreen span{position:relative;left:-15px;bottom:-100%} 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -