wright67uk Posted May 2, 2011 Share Posted May 2, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/235379-unwanted-scroll-bar-in-php-file-but-doesnt-exist-in-html-file/ Share on other sites More sharing options...
markjoe Posted May 2, 2011 Share Posted May 2, 2011 IE is rendering in quicks mode. There is something in your php file pushing the DOCTYPE line down to the 3rd line. DOCTYPE declarations MUST be on the first line or they will be ignored. Quote Link to comment https://forums.phpfreaks.com/topic/235379-unwanted-scroll-bar-in-php-file-but-doesnt-exist-in-html-file/#findComment-1209632 Share on other sites More sharing options...
wright67uk Posted May 2, 2011 Author Share Posted May 2, 2011 That did the job, thankyou very much. I'd never heard of quicks mode before, is there any good reading on this that you can suggest? Quote Link to comment https://forums.phpfreaks.com/topic/235379-unwanted-scroll-bar-in-php-file-but-doesnt-exist-in-html-file/#findComment-1209645 Share on other sites More sharing options...
markjoe Posted May 2, 2011 Share Posted May 2, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/235379-unwanted-scroll-bar-in-php-file-but-doesnt-exist-in-html-file/#findComment-1209663 Share on other sites More sharing options...
cssfreakie Posted May 2, 2011 Share Posted May 2, 2011 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 Quote Link to comment https://forums.phpfreaks.com/topic/235379-unwanted-scroll-bar-in-php-file-but-doesnt-exist-in-html-file/#findComment-1209669 Share on other sites More sharing options...
markjoe Posted May 2, 2011 Share Posted May 2, 2011 LOL, sorry for the typo. Perhaps I should read what I type a closer... I even did it twice... Quote Link to comment https://forums.phpfreaks.com/topic/235379-unwanted-scroll-bar-in-php-file-but-doesnt-exist-in-html-file/#findComment-1209678 Share on other sites More sharing options...
cssfreakie Posted May 2, 2011 Share Posted May 2, 2011 LOL, sorry for the typo. Perhaps I should read what I type a closer... I even did it twice... hehe no problem, quicksmode just sounds as if it is cool Quote Link to comment https://forums.phpfreaks.com/topic/235379-unwanted-scroll-bar-in-php-file-but-doesnt-exist-in-html-file/#findComment-1209683 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.