Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jan 2007
    Posts
    123
    Thanks
    20
    Thanked 1 Time in 1 Post

    Unordered List in a paragraph

    I gather from my page not validating that you can't do this:

    Code:
    <p><ul><li></li><ul></p>
    What could I do instead?

    Thanks

  • #2
    Regular Coder croatiankid's Avatar
    Join Date
    Jan 2006
    Posts
    665
    Thanks
    1
    Thanked 12 Times in 12 Posts
    Remove the </p>.

  • #3
    New Coder
    Join Date
    May 2008
    Posts
    56
    Thanks
    9
    Thanked 1 Time in 1 Post
    Code:
    <p><ul><li>content</li></ul></p>
    try HTML 4.01 Transitional
    Dedicate some time to Educate your mind

  • #4
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    This disallow...ing of lists within paragraphs is generally accepted to be a mistake and will be included in HTML5. Best solution for now will probably be to use negative margins to make it look like it's embedded.

  • Users who have thanked Apostropartheid for this post:

    cheechm (05-16-2008)

  • #5
    Regular Coder
    Join Date
    Jan 2007
    Posts
    123
    Thanks
    20
    Thanked 1 Time in 1 Post
    Ok thanks.


  •  

    Posting Permissions

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