Unwanted horizontal scrolling in IE

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
dubbelepunt
Advanced
Advanced
Posts: 10
Joined: Mon Aug 16, 2004 2:00 pm

Unwanted horizontal scrolling in IE

Post by dubbelepunt »

Hi guys,

I have a big problem with positioning a horizontal scrollbar in the top right corner of my page using a table, see the following page:

http://test.dubbelepunt.com/milonic/

As you can see the menu is exactly where it should be, but IE just makes up a horizontal scrollbar. All other browsers are working fine!

Does anyone know how to tackle this problem?

Thanks!

edit: needs to be viewed at 1024 x 768 for the problem to be visible.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

I have the fix, I can't tell you why it's doing what it's doing in IE.

Instead of putting the menu in that

Code: Select all

<td align=right width=500>
as it is now, you need to get rid of the align=right, then put a table in that cell and align the table right, put the menu in that table. So table code would be like this:

Code: Select all

<TD width=500>
<table cellSpacing=0 cellPadding=0 border=0 align="right">
<tr>
    <td> <SCRIPT language=javascript>the menu as it is now</SCRIPT>
</td>
</tr>
</table>
</TD>
That fixes the problem. Don't ask me why, I have no clue.

Ruth
dubbelepunt
Advanced
Advanced
Posts: 10
Joined: Mon Aug 16, 2004 2:00 pm

Post by dubbelepunt »

Tanks a lot Ruth! We already tried something similar to that, but your code does the trick!

Grtz,

Arno
Post Reply