Donate SIGN UP

Duplicate tags in html

Avatar Image
judgepd | 18:17 Thu 03rd May 2007 | Internet
1 Answers
I use a database to generate letters with addresses in html, when the 4th line of the address is not present in the database the code shows as below and I get a blank space before the post code on the letter. Is there any code I can use to automatically remove this blank space?

Mrs Ann Other(br)
Anywhere Street(br)
Any Road(br)
Anytown(br)
(br)
XX2 4XX

Thanks
Gravatar

Answers

Only 1 answerrss feed

Best Answer

No best answer has yet been selected by judgepd. Once a best answer has been selected, it will be shown here.

For more on marking an answer as the "Best Answer", please visit our FAQ.
How does the database generate the HTML? Do you use asp/asp.net or php?

Basically the </BR> html tag is forcing a blank line and you need to test for the existance of address line 4. If it does not exist then dont add the BR tag

Only 1 answerrss feed

Do you know the answer?

Duplicate tags in html

Answer Question >>

Related Questions

Sorry, we can't find any related questions. Try using the search bar at the top of the page to search for some keywords, or choose a topic and submit your own question.