• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

"pre" html tag

monto

Platinum Member
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
 
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
 
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
 


<< 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
 
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
 


<< 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.
 
Back
Top