Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Comment line affects presentation

Status
Not open for further replies.

Glasgow

IS-IT--Management
Jul 30, 2001
1,669
GB
Under what circumstances, if any, could a comment line of the form

<!--**************************-->

affect the behaviour of the page. I have found that unpredictable behaviour with positioning of a div and the display of spurious text can be eliminated by removing one such line (IE6). I have validated the HTML and no errors reported.

Thanks in advance.
 
Another good thing is to make sure that your comment tags are coded properly:
Code:
<!-- this comment will work perfectly -->
<!----- this comment might fail in some browsers ---->
I try to delimit the comment tags with a space right after/in front of them for best cross-browser compatibility.
 
Thank you for your input. I found that the format of the comment appeared to have little effect on the problem and, ultimately, the simplest solution was just to get rid of it! The space delimited suggestion could prove worthwhile.

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top