Hidden style affecting links in table?
In a table of mine I have the table header, th which have two separate links in each cell. Each of them wrap to a new l开发者_运维问答ine which I don't want. If I remove all the style sheets it doesn't fix it. If i disable style sheets in the browser it fixes it but there are no inline styles that would cause the wrapping. If they are non-hyperlinked words they don't wrap. If I use the td tag it doesn't fix it either. There is too much code all over the shop to post but all I want is in a th cell a word with an image next to it with a different hyperlink.
Here is a quick bit of code. Although doing nowrap does work in this quick look it doesn't work in the actual code for some reason.
<table>
<tr>
<th>Time:</th>
<th style="width: 8%">
<a href="week.php?year=2010&month=4&day=7&area=2&room=20">V505(2)</a>
<a href="http://www.google.com"><img src = "images/information.png" width = "25" height = "25" border = "0"/></a>
</th>
<th>Time:</th>
</tr>
</table>
Any reason why you can't do a white-space: nowrap;
?
Have you tried setting the width to a measure instead of a %? With no width specified on the Table, the browser might not be sure what 8% means (unless of course, these are specified in some styles).
精彩评论