Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Whitespace in FireFox 2

Status
Not open for further replies.

1DMF

Programmer
Jan 18, 2005
8,795
GB
Can anyone give me a heads up on how firefox deals with white space.

I wrote a css/javascript DHTML menu, it worked like a dream in I.E., yet nothing appeared in FF.

However, all I did to fix the problem was remove the whitespace between the tags (the code was built dynamically with PERL).

It now works fine in both I.E & FF.

I have to conclude that there is an issue/difference in how FF deals with whitespace.

I'm not sure why FF couldn't handle the whitespace in the code, and would like some pointers for reference, so i don't waste another day chacing bugs in my code that aren't there.

Regards,

1DMF.

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
Check out this link where it discusses the height 100% in more details:


I like the comment on the top of that page... totally without context there is a statement in a box on the page saying: "Explorer 5 Mac has serious problems". I don't disagree... just thought it was funny :)

Cheers,
Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]

What is Javascript? faq216-6094
 
hmm I don't agree with this statement
So when we add a doctype to switch the browser to 'Strict mode' our solution doesn't work (popup) any more. Body and html stretch up to allow for the actual content of the div, but not any further
the content of the TD in question is an iframe which is set to 100% height and the content is even bigger, yet it creates a small window with scrollbars, NOT showing as much of the content that is needed to display the data.

on top of all that i've just added this to the body tag
Code:
<BODY onContextMenu="return bloc_clic();" topmargin=0 [b]height="100%" style="height:100%"[/b]>
and it has made no difference so their fix doesn't work either!

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
i've even added
Code:
body
{
color: #000000;
font-family: Arial, Verdana;
font-size: 12pt;
background-color: #ffffff;
height: 100%;
}

html {
height: 100%;
}
to the CSS file and still the same, what a shame, I was nearly impressed by Opera, oh well back to I.E. it is :)

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top