Closed Bug 281512 Opened 20 years ago Closed 20 years ago

Rendering is not correct for the navigation bar on this page.

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: barts, Assigned: bugzilla)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

The blue navigation bar on top of this page containing the "Internet Access",
"Services", "Channels" and "About TIMENet" displayed a single (blue) line with
options underneath it for all 4 options (as seen in IE before I installed FF)

FF displays the line with extra options on a separate line each.

Reproducible: Always

Steps to Reproduce:
1. browse to webmail.time.net.my
2. look at the top navigation bar.
3. move over the top 4 items and see what happens

Actual Results:  
the lines with navigation options are displayed on 4 different lines

Expected Results:  
display the navigations options on one line right under the main navigation line

I am not aware if this is IE specific webpage or a rendering problem in FF.
I bet you have a 1600x1200 screen like me ;-)

At http://webmail.time.net.my/main.php:

<script language="JavaScript">
	if (is_ie4up)  
	{
		document.write("<LINK REL=stylesheet HREF=navigationbar/styleie.css
TYPE=text/css>");
	}
	else
	{
		if (screen.width == 1152)
		{
			alert (screen.width + " and " + window.innerWidth);
			document.write("<LINK REL=stylesheet HREF=navigationbar/styleofbig.css
TYPE=text/css>");
		}				
		else if (screen.width == 1024)
		{
			document.write("<LINK REL=stylesheet HREF=navigationbar/styleof.css
TYPE=text/css>");
		}
		else if (screen.width == 800)
		{
			document.write("<LINK REL=stylesheet HREF=navigationbar/styleofsmall.css
TYPE=text/css>");
		}
	}
	// -->
</script>


Changing "screen.width == 1152" to "screen.width > 1152" fixes the problem.
You need to remove the alert() there too...

-> INVALID
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.