I have added div tags to text on the same line as I wanted to add the mouseover feature but now all the text is on different lines. How do I make it so all the text is on the same line?
HTML:
<div style="margin-top:30px;" />
<center>
<table height="50" width="400" cellpadding="0" cellspacing="0">
<tr>
<td>
<center>
<hr size="1" color="#585858" width="82%"></hr>
</center>
<center>
<div class="about">
<font face="helvetica" size="2" color="#585858">About Us</div>
<div class="about">Accessibility</div>
<div class="about">Contact Us</div> </font></div>
<font face="helvetica" size="2" color="#585858">©2011 - Privacy
</font></center>
</center>
</td>
</tr>
</table>
</center>
CSS:
.about:hover {
font: 13px helvetica;
text-decoration: underline;
}
Thanks!
James
Write
float:leftordisplay:inline-blockin thediv cssbecausedivis ablock elementthat’s why it comes below each other. So; that’s why we usefloat & inline-blockto force thedivtakes it’s actualwidth: