Jump to content

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/65818-problems-with-firefox/
Share on other sites

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.
Link to comment
https://forums.phpfreaks.com/topic/65818-problems-with-firefox/#findComment-334373
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/65818-problems-with-firefox/#findComment-334783
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.