Help - Search - Members - Calendar
Full Version: Firefox leaves empty line when there is no value for Address 2
User Forums > Ultimate Locator v1 - v2.5 Support > General Support
Juice
How do I get rid of the empty line that Firefox leaves when there is no value for the Address 2 field? It happens in both the list and the details pages.

In IE 6, it works fine. When the field is empty, it skips it altogether.

An example: http://www.digitalantenna.com/locator/resu...id=19&dist=

Thanks,
Juice
Brian
The php code in the results_list_format.php and results_details_format.php files are coded to place a (br) break tag just after the address1 field, then print the address2 field on the next line.

If you wanted to skip the address2 field is empty, then you would have to add some new php code to your file.

You can test to see if the address2 field is NOT EMPTY, if it's not, then put a break and continue to write the address2 field to the screen. If it IS EMPTY, then add a (br) and continue with the city,state and zip.
Juice
FYI, I fixed it with CSS in the two format.htm files. The cells all have a class with a line-height of 120%. Address1 and Address 2 are each in their own table row. It now displays correctly in IE, Firefox and Opera.

I did not add any .php code. After reading your post, it doesn't make sense that my method worked, but it did. : )

Juice

QUOTE(Brian @ Dec 14 2006, 10:32 PM) *
The php code in the results_list_format.php and results_details_format.php files are coded to place a (br) break tag just after the address1 field, then print the address2 field on the next line.

If you wanted to skip the address2 field is empty, then you would have to add some new php code to your file.

You can test to see if the address2 field is NOT EMPTY, if it's not, then put a break and continue to write the address2 field to the screen. If it IS EMPTY, then add a (br) and continue with the city,state and zip.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.