coldst57 Posted August 20, 2007 Share Posted August 20, 2007 I wonder if someone could suggest what is happening. A page written in xhtml and utilising CSS fully and working in all browsers. I added a small PHP script to allow the client to directly update a latest news section (obviously changed the file to .php). The page works correctly in all browsers except firefox where the CSS is misinterpreted on just one of the divs, seriously misaligning the particular block, everything else works well. When the file is changed back to html it again works perfectly. <div class="leftbox" id="menu1"> <div id="pageNav"> <div id="sectionLinks"> (Menus and lists in this section) </div></div></div> The CSS file is external and works fine with everything else, I would be most grateful if anyone has any suggestions Quote Link to comment https://forums.phpfreaks.com/topic/65818-problems-with-firefox/ Share on other sites More sharing options...
php_tom Posted August 20, 2007 Share Posted August 20, 2007 Try using span... ??? Quote Link to comment https://forums.phpfreaks.com/topic/65818-problems-with-firefox/#findComment-328843 Share on other sites More sharing options...
coldst57 Posted August 21, 2007 Author Share Posted August 21, 2007 Thanks for the reply. I solved the problem - I had surrounded the PHP script in HTML Comments <!-- --> . Firefox sure don't like this and reacts in the most weird ways. Best wishes Ian Quote Link to comment https://forums.phpfreaks.com/topic/65818-problems-with-firefox/#findComment-330258 Share on other sites More sharing options...
Azu Posted August 26, 2007 Share Posted August 26, 2007 I wonder if someone could suggest what is happening. A page written in xhtml and utilising CSS fully and working in all browsers. I added a small PHP script to allow the client to directly update a latest news section (obviously changed the file to .php). The page works correctly in all browsers except firefox where the CSS is misinterpreted on just one of the divs, seriously misaligning the particular block, everything else works well. When the file is changed back to html it again works perfectly. <div class="leftbox" id="menu1"> <div id="pageNav"> <div id="sectionLinks"> (Menus and lists in this section) </div></div></div> The CSS file is external and works fine with everything else, I would be most grateful if anyone has any suggestions This isn't a problem with Firefox. It is a problem with you putting PHP code in your HTML. PHP should be on the server side only, never sent to the client. Quote Link to comment https://forums.phpfreaks.com/topic/65818-problems-with-firefox/#findComment-334373 Share on other sites More sharing options...
TheFilmGod Posted August 26, 2007 Share Posted August 26, 2007 actually the problem would be repeated in IE (sometimes). NEVER when adding php to an html page put an html comment before the dtd and <html> are made. This creates quirks in IE and sometimes in FF too. Or at least this happended to me earlier. Quote Link to comment https://forums.phpfreaks.com/topic/65818-problems-with-firefox/#findComment-334783 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.