Page 1 of 1

Problem with Definition List FireFox

Posted: Thu Feb 25, 2010 9:37 am
by TorMike
I've run into a weird problem getting a definition list to display correctly in FireFox 3.6..

Near the bottom of my PHP code within in an echo statement I list contact information using the <dl><dt><dd> tags.

What is happening is that the <dd> tag will not display the entire phone number. Here is the original code:

Code: Select all

 
<h2>Contact Information</h2>
 
<dl>
  <dt><b>Telephone:</b></dt>
    <dd>(250) 426-4226</dd>  --) [color=#800000]this last digit caused the entire line to disappear[/color]
   <dt><b>Fax:</b></dt>
     <dd>(250) 426-4576</dd>
    <dt><b>Postal address:</b>1408 4th Ave South, Cranbrook B.C. V1C 2E9</dt>
    <dt><b>Email:</b><a href="mailto:rockymountainrvrentals@telus.net">rockymountainrvrentals@telus.net</a></dt>
</dl>
 
What appears on the website is the word 'Telephone' followed by a blank line, then the word 'Fax:' followed by the indented fax phone number.

If I remove the last digit in the phone number (that would be the '6') only the 9 digit telephone number line will be displayed (250) 426-422!

Here's my fix:

Code: Select all

 
<h2>Contact Information</h2>
 
<dl>
  <dt><b>Telephone:</b>Area Code: (250)</dt>
    <dd>426-4226</dd>
  <dt><b>Fax:</b> Area Code (250)</dt>
    <dd>426-4576</dd>
  <dt><b>Postal address:</b>1408 4th Ave South, Cranbrook B.C. V1C 2E9</dt>
  <dt><b>Email:</b><a href="mailto:rockymountainrvrentals@telus.net">rockymountainrvrentals@telus.net</a></dt>
</dl>
 
As you can see I just split the area code from the phone number.

Only Fire Fox will NOT display the phone number if that one extra digit is included, IE has no problem.

Weird or what!
Any suggestions!

Re: Problem with Definition List FireFox

Posted: Thu Feb 25, 2010 11:06 am
by Salaria
:!: Weird issue :!: I tried same code in FF 3.6 and 3.5.8 there is no problem at all. Might be some plugin or addon creating issues.

Re: Problem with Definition List FireFox

Posted: Thu Feb 25, 2010 12:47 pm
by TorMike
I went back to my code and removed my 'patch' and guess what? No problem.

The only thing I can think of was a weird character being introduced by my editor.

There appears to be absolutely no problem with the dl/dt/dd tags and Fire Fox.

Weird!