Log in

View Full Version : Wrapped text in IE table



thompa
06-30-2008, 07:52 PM
Hi there,

I am getting a strange result in a table in IE7.

the code is:-

<td width="73" align="center"><!-- the following doesn't work in IE7 but does in Firefox - <input name='button1' type='button' href ="2coupleweekend/table2coupleweekend2.html" title="2 Couple Weekend League - Table" onClick="NewWindow(this.getAttribute('href'),this.getAttribute('title'),'500','350','no','center');return false" onfocus='this.blur()' value=" View League Table "> --><a href="2coupleweekend/table2coupleweekend1.html" title="2 Couple Weekend Division 1 - Table" class="style8"
onclick="NewWindow(this.href,this.title,'500','350','no','center');return false" onfocus="this.blur()">View League Table</a><br>
<input name='button2' type='button' title="Print Division 1 Fixtures" onClick="window.print();return false;" value=" Print League Fixtures "></td>
Strangely IE7 translates this as :-
View
League
Table
(Print League Fixtures)

Where (Print League Fixtures) represents the button.

Just can't understand why Firefox shows it as it should be but IE7 shows the three words on separate lines!

Can anyone explain?

Allan
PS the page is at:-
http://nkelsey.byethost24.com/fixtures/fixtures2coupleweekenddiv1.php

magicyte
07-05-2008, 02:14 AM
I think the only way to wrap text in tables is to make a style="width:(integer)" attribute in the tag that would wanted to be wrapped with text.

-magicyte