Jump to content

unwanted scroll bar in php file but doesnt exist in html file?


wright67uk

Recommended Posts

I have two files;

 

www.1pw.co.uk/newbusiness.html  (displays fine in IE) and

www.1pw.co.uk/newbusiness.php (unwanted scroll bar in IE)

 

newbusiness.html has only html, and newbusiness.php has a javascript file in the head, and php throughout, (form validation and sql).

The problem is although they both use the same css file and div layouts, for some reason or other newbusiness.php outputs an unwanted scroll bar to the side of the page.  This in turn puts one of my divs out.

 

Should the different file types output differently in this way, and are there any css rules I can use to force a browser not to display a scroll bar?

 

Many thanks - any ideas more than welcome.

quicks mode is just what IE falls back on when it doesn't know what type of document it's dealing with.

What you'd want to read up on is the DOCTYPE declaration and what it actually does. And if you're writing XHTML, make sure you have a solid understanding of XML.

Don't know of any good resources off the top of my head.

in case you were to google it it's called Quirksmode. Just read the sticky and you will find more of these common problems

 

http://www.quirksmode.org/css/quirksmode.html

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.