Results 1 to 3 of 3

Thread: [solved] 2 divs acting as 2 tds

  1. #1

    Thread Starter
    Fanatic Member brown monkey's Avatar
    Join Date
    Jun 2004
    Location
    Cebu
    Posts
    552

    [solved] 2 divs acting as 2 tds

    i need help converting something like this to div
    Code:
    <table>
    <td></td>
    <td></td>
    </table>
    cause if i have to use div on this, it could minimize coding. just two of them while 3 pairs of tag on table thing.
    Last edited by brown monkey; Aug 26th, 2004 at 05:41 AM.

  2. #2
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343
    In the style part
    Code:
    .lcol { 
        width: 200px; 
        border: solid 1px #f0f;
    }
    .rcol { 
        width: 200px; 
        border: solid 1px #0ff;
    }
    .fleft { float: left; }
    In the body
    Code:
    <div class='lcol fleft'>Left Div</div><div class='rcol fleft'>Right Div</div>
    Should give you an idea. Best to use firefox to view your pages first, and then in ie.

    You'll need to read up on fixs for ie, and CSS.


    Vince

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  3. #3

    Thread Starter
    Fanatic Member brown monkey's Avatar
    Join Date
    Jun 2004
    Location
    Cebu
    Posts
    552
    thank you.

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