PDA

View Full Version : My Site and Browser Errors


Doctor Death
10-13-2007, 11:47 AM
My Site: www.ddsog.com/forums looks and acts great under IE7/

It does not under Firefox... all out of alignment etc.

Can anyone out there explain why this is and how I can fix it?

Thanks much...

Doc

Lynne
10-13-2007, 03:33 PM
Take a look at your source code and you'll see that you've commented everything out. IE loves to try to 'fix' the problem (wrong thing to do) whereas other browsers will make you fix your code (right thing to do).

This is where you problem starts:
<!-- Double Nav Bar Start
<!-- top nav buttons bar -->
<div align="center">

You didn't end the comment for your Double Nav Bar Start.

Doctor Death
10-13-2007, 04:07 PM
Take a look at your source code and you'll see that you've commented everything out. IE loves to try to 'fix' the problem (wrong thing to do) whereas other browsers will make you fix your code (right thing to do).

This is where you problem starts:
<!-- Double Nav Bar Start
<!-- top nav buttons bar -->
<div align="center">

You didn't end the comment for your Double Nav Bar Start.

Good god, someone who knows that they are talking about!!!

Really stupid question, you have to end comments? With what characters?

Lynne
10-13-2007, 07:07 PM
You start a comment with "<!--" (stuff between quotes) and you end the comment with "-->" That is for *html* comments. PHP comments are different - start "/*" and end "*/" unless is it just a single line, then it is "//" and then there is...... in other words, different comment tags for different languages and different circumstances. :)