html - Write between two borders? -


this question has answer here:

i write between 2 border this:

imgur

i tried style border in css don't know, how write in border :

.my_class {   border: 2px solid; } 

does have idea on how put text on top of border ?

you can this:

html

<div>      <span>         product may     </span> </div> 

css

div {     width: 500px;     height: 500px;     background-color: #fff;     text-align: center;     border: 2px solid black; } span {     background-color: white;     position: relative;     top: -10px;     padding: 0 10px; } 

fiddle demo


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -