Create a Fixed Width Span in HTML/CSS
by Francis[ Edit ] 2014-02-18 09:49:35
Create a Fixed Width Span in HTML/CSS
Normally we give width in style, its not fixed size. In css we could add
"display: inline-block"
Example :
<style type="text/css">
.spanClass
{
color:red;
border:1px solid gray;
width:300px;
display:inline-block;
}
</style>
<p>Hi <span class="spanClass"> Dude </span> ...</p>