lists in tables

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jim

    lists in tables

    A simple list element wraps so that the text on the second
    displayed line lines up with the text on the first line; e.g.,

    <ul>
    <li>Many, many, many, many, ... words

    looks like

    o Many, many, many, ...
    many words

    (e.g., if you view this post with a monospace font).

    If this same list is in a table, the text wraps to align with the
    bullet:

    <table>
    <tr>
    <ul>
    <td>
    <li>Many, many, many, many, ... words

    looks like

    o Many, many, many, ...
    many words

    Is there a way to get a list in a table to have lines after the
    first indent, as a list not in a table does?

    Thanks,
    Jim
  • Leif K-Brooks

    #2
    Re: lists in tables

    Jim wrote:[color=blue]
    > <table>
    > <tr>
    > <ul>
    > <td>
    > <li>Many, many, many, many, ... words
    >
    > looks like
    >
    > o Many, many, many, ...
    > many words
    >
    > Is there a way to get a list in a table to have lines after the
    > first indent, as a list not in a table does?[/color]

    Put the ul element's tags inside the td element's tags, not the other
    way around.

    Comment

    • jmm-list-gn

      #3
      Re: lists in tables

      Jim wrote:[color=blue]
      >
      > Is there a way to get a list in a table to have lines after the
      > first indent, as a list [...]?
      >[/color]
      Yes.
      <table><tr><t d>
      <ul>
      <li>Many, many, many, many, ... words

      --
      jmm dash list (at) sohnen-moe (dot) com
      (Remove .AXSPAMGN for email)

      Comment

      • Jim

        #4
        Re: lists in tables

        Leif K-Brooks <eurleif@ecritt ers.biz> wrote in
        news:2spa0jF1mu 5iaU1@uni-berlin.de:
        [color=blue]
        > Put the ul element's tags inside the td element's tags, not the
        > other way around.[/color]

        jmm-list-gn <jmm-list.AXSPAMGN@s ohnen-moe.com> wrote in
        news:bpSdnYkJbY BEH_rcRVn-ig@giganews.com :
        [color=blue]
        > <table><tr><t d>
        > <ul>
        > <li>Many, many, many, many, ... words[/color]

        Thank you, both. I could have sworn that I tried that (ul after td)
        but obviously I didn't, since that works.

        Thanks again,
        Jim

        Comment

        Working...