convert a table to a <div> controlled layout

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

    convert a table to a <div> controlled layout

    How to convert the common html table code below
    <table align="center">
    <tr>
    <td 1.1 &nbsp;&nbsp; </td>
    <td 1.2 &nbsp; &nbsp; </td>
    <td 1.3 &nbsp;&nbsp;
    </td>
    </tr>
    <tr>
    <td 2.1 &nbsp;&nbsp; </td>
    <td 2.2 &nbsp; &nbsp; </td>
    <td 2.3 &nbsp; &nbsp; </td>
    </tr>
    <tr>
    <td 3.1 &nbsp;&nbsp; </td>
    <td 3.2 &nbsp; &nbsp; </td>
    <td 3.3 &nbsp; &nbsp; </td>
    </tr>

    </table>

    to a <divcontrolle d layout using css?
  • Rik Wasmus

    #2
    Re: convert a table to a &lt;div&gt; controlled layout

    On Mon, 19 May 2008 09:07:52 +0200, Phper <hi.steven.tu@g mail.comwrote:
    How to convert the common html table code below
    <table align="center">
    <tr>
    <td 1.1 &nbsp;&nbsp; </td>
    <td 1.2 &nbsp; &nbsp; </td>
    <td 1.3 &nbsp;&nbsp;
    </td>
    </tr>
    <tr>
    <td 2.1 &nbsp;&nbsp; </td>
    <td 2.2 &nbsp; &nbsp; </td>
    <td 2.3 &nbsp; &nbsp; </td>
    </tr>
    <tr>
    <td 3.1 &nbsp;&nbsp; </td>
    <td 3.2 &nbsp; &nbsp; </td>
    <td 3.3 &nbsp; &nbsp; </td>
    </tr>
    >
    </table>
    >
    to a <divcontrolle d layout using css?
    1) Ask in comp.infosystem s.www.authoring.html
    2) It seems like perfectly valid data for a table. Keep in mind the credo
    is "Don't use tables for layout." and NOT "Don't use tables."

    Nothing to do with PHP, unless you want to do it with PHP itself, in which
    case, look into DOM, and possibly provide a desired output.
    --
    Rik Wasmus
    ....spamrun finished

    Comment

    • Erwin Moller

      #3
      [troll warning]Re: convert a table to a &lt;div&gt; controlled layout

      Great, my troll warning setup worked.
      This is hi.steven.tu@gm ail.com, the imposter.

      Don't waste time with trying to help him.

      Regards,
      Erwin Moller

      Comment

      • Captain Paralytic

        #4
        Re: convert a table to a &lt;div&gt; controlled layout

        On 19 May, 08:50, "Rik Wasmus" <luiheidsgoe... @hotmail.comwro te:
        On Mon, 19 May 2008 09:07:52 +0200, Phper <hi.steven...@g mail.comwrote:
        How to convert the common html table code below
        <table align="center">
        <tr>
        <td 1.1 </td>
        <td 1.2 </td>
        <td 1.3
        </td>
        </tr>
        <tr>
        <td 2.1 </td>
        <td 2.2 </td>
        <td 2.3 </td>
        </tr>
        <tr>
        <td 3.1 </td>
        <td 3.2 </td>
        <td 3.3 </td>
        </tr>
        >
        </table>
        >
        to a <divcontrolle d layout using css?
        >
        1) Ask in comp.infosystem s.www.authoring.html
        2) It seems like perfectly valid data for a table. Keep in mind the credo
        is "Don't use tables for layout." and NOT "Don't use tables."
        >
        Nothing to do with PHP, unless you want to do it with PHP itself, in which
        case, look into DOM, and possibly provide a desired output.
        --
        Rik Wasmus
        ...spamrun finished
        This is the guy who pretended to be Erwin.

        Until he offers some sort of explanation and apology for his actions,
        I for one am leaving him well alone.

        Comment

        • Jerry Stuckle

          #5
          Re: [troll warning]Re: convert a table to a &lt;div&gt; controlled layout

          Erwin Moller wrote:
          Great, my troll warning setup worked.
          This is hi.steven.tu@gm ail.com, the imposter.
          >
          Don't waste time with trying to help him.
          >
          Regards,
          Erwin Moller
          Last time I called him on using your name (over in
          comp.databases. mysql), he had the gall to write me, requesting an audio
          chat to "clarify the misunderstandin g between us".

          I told him he'd been caught at his actions. He never responded again.

          Glad to hear your troll alert worked!

          --
          =============== ===
          Remove the "x" from my email address
          Jerry Stuckle
          JDS Computer Training Corp.
          jstucklex@attgl obal.net
          =============== ===

          Comment

          • Erwin Moller

            #6
            Re: [troll warning]Re: convert a table to a &lt;div&gt; controlled layout

            Jerry Stuckle schreef:
            Erwin Moller wrote:
            >Great, my troll warning setup worked.
            >This is hi.steven.tu@gm ail.com, the imposter.
            >>
            >Don't waste time with trying to help him.
            >>
            >Regards,
            >Erwin Moller
            >
            Last time I called him on using your name (over in
            comp.databases. mysql), he had the gall to write me, requesting an audio
            chat to "clarify the misunderstandin g between us".
            WHAT? An audiochat? After imposting you too?
            Some nerve...
            >
            I told him he'd been caught at his actions. He never responded again.
            I get the impression this imposter is badly in need of some attention.
            But I must admit I am a little curious what he would have told you as an
            excuse for his actions. ;-)
            >
            Glad to hear your troll alert worked!
            Yes, the troll turns up purple in my Thunderbird now.
            I don't like that color, so that suits him just fine. :P

            Regards,
            Erwin Moller

            Comment

            • Satya

              #7
              Re: convert a table to a &lt;div&gt; controlled layout

              On May 19, 12:07 pm, Phper <hi.steven...@g mail.comwrote:
              How to convert the common html table code below
              <table align="center">
              <tr>
              <td   1.1 &nbsp;&nbsp;   </td>
              <td   1.2 &nbsp; &nbsp;  </td>
              <td   1.3 &nbsp;&nbsp;
                 </td>
              </tr>
              <tr>
              <td  2.1  &nbsp;&nbsp;  </td>
              <td  2.2  &nbsp; &nbsp;  </td>
              <td  2.3  &nbsp; &nbsp; </td>
              </tr>
              <tr>
              <td  3.1  &nbsp;&nbsp;  </td>
              <td  3.2  &nbsp; &nbsp;  </td>
              <td  3.3  &nbsp; &nbsp; </td>
              </tr>
              >
              </table>
              >
              to a <divcontrolle d layout using css?
              It can be done like this:
              <div style="float:le ft;width:30%"a </div <div
              style="float:le ft;width:30%"b </div <div style="float:le ft;width:
              30%"c </div>

              <div style="clear:bo th"></div>

              <div style="float:le ft;width:30%"a </div <div
              style="float:le ft;width:30%"b </div <div style="float:le ft;width:
              30%"c </div>

              <div style="clear:bo th"></div>

              Comment

              Working...