"pre" html tag

monto

Platinum Member
Oct 12, 1999
2,047
0
0
why is it that at "medium" text size, the columns within a <pre> tag will look fine, but at "larger" or some other IE text size, the columns get all screwed up?

example
 

monto

Platinum Member
Oct 12, 1999
2,047
0
0
it looks aligned in both "larger" and "medium"?

i just tried again with both IE and Netscape, same thing :( the "larger" mode shows the columns intermittently spread out
 

Soccer55

Golden Member
Jul 9, 2000
1,660
4
81
In looking at your source, you didn't use the same spacing for each one (ie: to separate the columns, in some instances you used only tabs, in others you used only spaces, and in the rest you used a combination of spaces and tabs). Maybe a uniform method of spacing (ie: all tabs) would line everything up correctly. The other option I can think of is you could try to align them without using tabs through DIV tags. That would require you to use 2 PRE tags, one for each column.

-Tom
 

MrCodeDude

Lifer
Jun 23, 2001
13,674
1
76


<< In looking at your source, you didn't use the same spacing for each one (ie: to separate the columns, in some instances you used only tabs, in others you used only spaces, and in the rest you used a combination of spaces and tabs). Maybe a uniform method of spacing (ie: all tabs) would line everything up correctly. The other option I can think of is you could try to align them without using tabs through DIV tags. That would require you to use 2 PRE tags, one for each column.

-Tom
>>


That's a very good point..
-- mrcodedude
 

monto

Platinum Member
Oct 12, 1999
2,047
0
0
that example is a smaller version of a much larger preformatted text page, but i assume <pre> would be same across all text sizes, regardless of tabs/spaces

i'll take a crack at the <div> tag, thanks
 

wildwildwes

Senior member
Jul 18, 2001
320
0
0


<< that example is a smaller version of a much larger preformatted text page, but i assume <pre> would be same across all text sizes, regardless of tabs/spaces

i'll take a crack at the <div> tag, thanks
>>



I think soccer55 got the problem right on. If you had used all spaces or all tabs, you should have be fine in IE. My guess is that Netscape is converting the tabs to x number of spaces while IE is considering the tabs to be stops at certain intervals across the screen. Personally, I would not use tabs in this sort of text, because there is no universal interpretation of them.