Closed Thread Icon

Preserved Topic: td text problems (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=20490" title="Pages that link to Preserved Topic:  td text problems (Page 1 of 1)" rel="nofollow" >Preserved Topic:  td text problems <span class="small">(Page 1 of 1)</span>\

 
wcr one
Paranoid (IV) Inmate

From: seattle
Insane since: Mar 2001

posted posted 04-17-2002 22:29

I have this bit of code below that works fine in IE, but in nn4.7 it breaks into a new linw after the </span> and then after the </a>. what up with that? just more nn4.7 hijinks or am I missing something obvious. 'nowrap' did not work.

the styles used are

a:link {font: bold 10pt helvetica, arial, "sans serif"; color:#666666; text-decoration:none; text-align:center;}
td.fb {font: bold 8pt helvetica, arial, "sans serif"; background-color:#ffffff; text-align:center; text-wrap:no}
.gsfb {font: bold 8pt arial; color:#000000; text-align:center;}

<tr>
<td class=fb colspan=3>More info for <span class=gsfb>#qryGS.Genus# #qryGS.Species#</span> at
<A class=fb HREF="http://www.fishbase.org/larvalbase/Summary/LarvaSummary.cfm?Genusname=#qryGS.Genus#&Speciesname=#qryGS.Species#" target="fishbase">LarvalBase</a>
and <A class=fb HREF= "http://www.fishbase.org/NomenClature/ScientificNameSearchList.cfm?Genus=#qryGS.Genus#&Species=#qryGS.Species#" target="larvalbase">FishBase</a>
</td>
</tr>

unfortunately it is still just on my pc, so you can't see the full code.

any ideas or comments are greatly welcomed.

thanks



[This message has been edited by wcr one (edited 04-17-2002).]

kretsminky
Maniac (V) Inmate

From: A little lower... lower... ahhhhhh, thats the spot
Insane since: Jun 2000

posted posted 04-17-2002 22:34

Is that a hard return after the "at" behind the </span> but before the <a ??

That could be doing it.

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 04-17-2002 22:34

You can force it not to break text in that table cell by adding NOWRAP attribute to <TD> tag...

<TD NOWRAP>Don't wrap this text</TD>


CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 04-17-2002 22:40

Just working with it quickly, it is the span tag that is causing your problems obviously.
I took them out and it worked fine.

Just curious as to why you have two tags that are almost the same? I think that if you define your CSS tags differently you will get the same effect which will allow NN to display it correctly.

Then again, like I said I don't know if there is something special about the difference between the tags.

Later,
C:\


~Binary is best~

wcr one
Paranoid (IV) Inmate

From: seattle
Insane since: Mar 2001

posted posted 04-17-2002 22:43

Krets: it appears it was, but when I removed it it did not change the outcome. rats.
Mr. Max: I tried the nowrap to no avail. more rats.

wcr one
Paranoid (IV) Inmate

From: seattle
Insane since: Mar 2001

posted posted 04-17-2002 22:53

c:\: yep on the span, that was a left over from a previous change I was farting around with. thanks there. but just a question, should a <span> cause a break, I mean isn't it there specifically to work like a div WITHOUT the break?

unfortunately, none of this explains why there is a line break after the </a>.

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 04-17-2002 23:08

Ah, I noticed where's your problem. You should remove "text-align:center;" from "a:link" and "gsfb" CSS delarations, because it's causing text to wrap...


wcr one
Paranoid (IV) Inmate

From: seattle
Insane since: Mar 2001

posted posted 04-18-2002 00:13

Aha mr. max! though this caused a couple of unwanted (but expected) side affects, it did get to the root of the problem. I was able to get around the link style problems by creating an (pseudo) anchor class and though everything else was the same it worked.

so instead of:
a:link {font: bold 10pt helvetica, arial, "sans serif"; color:#666666; text-decoration:none; text-align:center;}

I used:
a.opt:link {font: bold 10pt helvetica, arial, "sans serif"; color:#666666; text-decoration:none; text-align:center;}

not sure why one would do the trick but not the other, but right now I am just happy it worked. thanks everyone for the help.

bill

« BackwardsOnwards »

Show Forum Drop Down Menu