Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Strange extra space in browser view

Status
Not open for further replies.

alfalf

Programmer
Mar 6, 2003
155
BA
Hello.

I have done some work, and have funny situation in wich I have 'no abnormality in code' but have in display (I'm using IE6 SP4). Like, with this code:
<td class=&quot;1mbdown&quot;><p><font class=&quot;2tbl&quot;><strong> ·
Security<br>
 · Privacy<br>
 ·</strong> <strong> Legal<br>
 ·</strong> IBBI corp.<strong><br>
 · </strong> Webmaster<strong><br>
 · </strong> Contact<strong><br>
 </strong><strong>· </strong>Suggest</font> </p></td>

I get this in browser:
· Security
· Privacy
· Legal
· IBBI corp.
· Webmaster
· Contact
<in browser, here is at least half line spacing empty space>!
· Suggest

This is as You can see - in an table cell. I have three of such and this 'half line spacing space' is same in all of them.
It's not so important but is anoying.
Thanks for any suggestions.

 
Hmmm, I have tried the code with IE 6 and Mozilla and no empty spaces were shown. But I had not seen your classes, maybe css will yield some answers. Could you post your css styles as well?
 
Hello. Thanks for reply. I was trying out AND HAVE FOUND A PROBLEM:

It is not a problem if there's only one table (sorry for wrong posting up), but if I put two of them, problem appeares! Never the less the problem was because i used <p> </p> (paragrapgh) tags in one table cell! When I rempoved them, problem dissapeared. Test this code and then remove <p></p> tags. Thanks for Your reply.

<style type=&quot;text/css&quot;>
.1mbdark {
background-color: #993399;
}
.1mblight {
background-color: #fff2ff;
}
.1mbcombo {
background-color: #993399;color: #fff2ff;
}
.1mbdown {
bgcolor: #fff2ff;
}
.2tbl {
font-family: Verdana;
font-size: 10px;
font-style: normal;
line-height: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
color: #000000;
text-decoration: none;
}
.tboldw {
font-family: Verdana;
font-size: 10px;
font-style: normal;
line-height: normal;
font-weight: bold;
font-variant: normal;
text-transform: none;
color: #ffffff;
text-decoration: none;
}
</style>

<table width=&quot;144&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;1&quot; class=&quot;1mbdark&quot;>
<tr>
<td> <table width=&quot;100%&quot; border=&quot;0&quot; cellpadding=&quot;2&quot; cellspacing=&quot;0&quot; class=&quot;1mblight&quot;>
<tr>
<td class=&quot;1mbcombo&quot;><font class=&quot;tboldw&quot;> Site
& Company</font></td>
</tr>
<tr>
<td class=&quot;1mbdown&quot;><p><font class=&quot;2tbl&quot;><strong> ·
Security<br>
 · Privacy<br>
 ·</strong> <strong> Legal<br>
 ·</strong> IBBI corp.<strong><br>
 · </strong> Webmaster<strong><br>
 · </strong> Contact<strong><br>
 </strong><strong>· </strong>Suggest</font> </p></td>
</tr>
</table>

<tr>
<td> <table width=&quot;100%&quot; border=&quot;0&quot; cellpadding=&quot;2&quot; cellspacing=&quot;0&quot; class=&quot;1mblight&quot;>
<tr>
<td class=&quot;1mbcombo&quot;><font class=&quot;tboldw&quot;> Site
& Company</font></td>
</tr>
<tr>
<td class=&quot;1mbdown&quot;><p><font class=&quot;2tbl&quot;><strong> ·
Security<br>
 · Privacy<br>
 ·</strong> <strong> Legal<br>
 ·</strong> IBBI corp.<strong><br>
 · </strong> Webmaster<strong><br>
 · </strong> Contact<strong><br>
 </strong><strong>· </strong>Suggest</font> </p></td>
</tr>
</table>


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top