Click to See Complete Forum and Search --> : padding


gavin26er
11-23-2005, 01:25 PM
hi

i'm using style sheets now for my spacing instead of spacers it works great but on the second line it doesn't work? the text on the second line is not lining up with the top one, its pushed left like the default? is there some thing i'm doing wrong. below is my code. the associations is pushed down to the next line but its not indenting it for me?

html

<tr>
<td height="35"><a href="" class="linkside">Business / Industry
Associations</a></td>
</tr>


css

.linkside:link, .linkside:active, .linkside:visited
{
font-size: 8pt;
font-weight: normal;
font-family: verdana, arial, helvetica, sans-serif;
color: #FFFFFF;
text-decoration: none;
padding-left: 10px;
}

toicontien
11-23-2005, 02:20 PM
The <A> tag is an inline element, so the left padding only gets applied to the first line. If you add display: block; to your .linkinside declaration you'll turn the <A> tag into a block element, like DIV, P, or LI. Then you can apply padding to push all lines of text inside the <A> tag over.