-
1 Attachment(s)
IE5.0 verse ie 6.0
I have an HTML page that forces line breaks between Lined items "<LI>" in an outline. The problem is that these forced line breaks appear when viewing the page in IE 5.0, but not in IE 6.0? What is the difference and how can I get them to appear in both browsers?
Here is a sample of my html page.
Thanks,
M
-
Code:
<LI><span style="font:bold;font-size:12.5pt;font-family:"CG Times">PUBLIC PRESENTATIONS:</span>
</LI>
Your quotes are illegal and wreak havoc with my HTML validator.
-
Well,
I haven't had a problem with any of the quoted styles. The reason I am doing it this way is because the html page is dynamically written from VB and is converted from Rich Text in many places. I am not getting an error with any of the Font or text styles. The only difference I am seeing is that between the line items in internet explorer 5 there are blank lines between the headings where in Explorer 6 there are not. Try changing the text file to an html file and view it in your web browser.
Thanks,
M
-
An <OL> tag cannot contain another <OL> tag, only <LI> tags. What's happening is that IE5, in its ignorance, is happily rendering invalid HTML, while IE6 and Mozilla are correctly ignoring the invalid html. And your quotes are closing too early - technically, your style attribute is closed by the first quote after font-family: , the CG Timers floats in space, and the quote after that doesn't have a matching closing quote.
-
I think you can have another OL as long as you encase it within a DIV in a LI:
Code:
<ol>
<li>List Item 1</li>
<li>List Item 2
<div><ol>
<li>List Item 2b</li>
<li>List Item 2c</li>
</ol></div>
</li>
</ol>
I'm pretty sure that's valid.
-
Right - the <li> tag can containing almost anything, but the <ol> tag itself can only contain <li> tags.