Create a Fixed Width Span in HTML/CSS

by Francis 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>
scrap1.jpg
830
like
0
dislike
0
mail
flag

You must LOGIN to add comments