View Full Version : this page has horizontal scrollbar active when not needed

07-22-2002, 01:40 AM

I have this web page that does not need for the horizontal scroll to be active because the contents more than fit into the area. I've tried hard to find the problem with no luck in it. Does anyone know?


The page is not completed by the way and doesn't have the images on the server.

Thanks for any help

07-22-2002, 02:28 AM
Nice site, (I imagine) I guess you are working on getting those images to show..

To get rid of that bar just place this attribute in the <body> tag.



07-22-2002, 03:26 AM
The problem is the <td> tags don't add up.
This causes the browser to add the table cells in all sorts of strange places. in this case, to the side.

Also, there are a number of other things to tidy up, I will see if I can find where the <td> prob is too.

OK, lets start witht he page structure.

You have two <html> and </html> tags on the page.
The first <html> that is out of place is just below the body tags. Here....

<body VLINK="#003366" LINK="#003366" ALINK="#003366" BGCOLOR="#F2F2F2" onload="dynAnimation(),rotateImage('rImage'),changeScrollbarColor('#000059')" style="scrollbar-arrow-color:#FFFFFF; scrollbar-track-color:#E8E8E8" topmargin="1" leftmargin="1">
<center> *************** HERE**********
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns="http://www.w3.org/TR/REC-html40">


Then an additional close... here......

<td colspan="3"
<div align="center">
<table border="0" CELLSPACING="0" CELLPADDING="0" width="601" height="192" style="border-collapse:


<td colspan="3">

above are the tags out of place, remove them and the table should be OK
Everything between the two internal html tags should be removed or reloacated except the meta tag.

As a sugestion, go to Doctor HTML (http://www.doctor-html.com/RxHTML/cgi-bin/ssi.cgi?l=intro.html) and check your code there. It will highlight the areas that need attention

Good luck.


07-22-2002, 06:22 AM
As Tonz mentioned, you should concentrate on the table codes and try to isolate the problem within the code that's forcing the horizontal scrollbar as opposed to masking it with overflow-x: hidden; ;).

Grant Palin
07-22-2002, 06:27 AM
I've had trouble with tables doing that before...You just need to make sure your cells and rows are closed properly.

07-22-2002, 06:30 AM
Yes, It's better to fix the bad code rather than make the browser adapt to "mask" your code as it wasn't developt to work like that.