Results 1 to 6 of 6

Thread: IE5.0 verse ie 6.0

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2001
    Location
    California
    Posts
    203

    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
    Attached Files Attached Files

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    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.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2001
    Location
    California
    Posts
    203
    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

  4. #4
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    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.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  5. #5
    Frenzied Member Rick Bull's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    1,444
    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.

  6. #6
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Right - the <li> tag can containing almost anything, but the <ol> tag itself can only contain <li> tags.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width