artworkad シ artworkad シ - 4 months ago 26
HTML Question

Span line break

I have the following problem:

alt text

Html:

<span class="info"></span>


CSS:

span.info{
margin-left: 10px;
color: #b1b1b1;
font-size: 11px;
font-style: italic;
font-weight:bold;
}


Any idea how to align the second line?

Answer
display:block;

then you've got a block element and the margin is added to all lines

Comments