Page 1 of 2 12 Last
  • Jump to page:
    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2009
    Location
    New Delhi
    Posts
    24
    Rep Power
    0

    Question How to split cells


    Hi all,
    I want to split a cell into two rows. How can I do it???
    Following is the structure of table I need.It contains only 1 row and 4 columns.The last column must be split into 2 rows.

    <table>
    <tr>
    <td>...</td>
    <td>...</td>
    <td>...</td>
    <td>...</td>//I want to splitt this cell into 2 rows si that i can have 2 different contents in each row.
    </tr>
    </table>

    Thanks to help me
  2. #2
  3. Code Monkey V. 0.9
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2005
    Location
    A Land Down Under
    Posts
    2,066
    Rep Power
    1990
    This is fairly basic HTML. but one that not many people seen to remember.
    Code:
    <table>
      <tr>
        <td rowspan='2'>...</td>
        <td rowspan='2'>...</td>
        <td rowspan='2'>...</td>
        <td>...</td>
      </tr>
      <tr>
        <td>...</td>
      </tr>
    </table>
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2009
    Location
    New Delhi
    Posts
    24
    Rep Power
    0
    thanks mate!!!
    n yeah really its very simple......
  6. #4
  7. Code Monkey V. 0.9
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2005
    Location
    A Land Down Under
    Posts
    2,066
    Rep Power
    1990
    No problem at all. It's these little things that people tend to miss, so it's always good for someone to ask the question so that others can have the benifit too.
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2009
    Posts
    80
    Rep Power
    33
    Hey thanks for contributing. Always nice to have a quick refresher on html tricks.
  10. #6
  11. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2013
    Posts
    11
    Rep Power
    0

    Can you help me split this cell into 2 vertically


    Hi Can you help me split this cell into 2 vertically?

    <td align="center" class="bb_row3">3.99</td>

    I appreciate your help.

    Kind regards,

    Dan1983
  12. #7
  13. Code Monkey V. 0.9
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2005
    Location
    A Land Down Under
    Posts
    2,066
    Rep Power
    1990
    Originally Posted by dan1983
    Hi Can you help me split this cell into 2 vertically?
    Follow my example above. That's all there is to it.
  14. #8
  15. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2013
    Posts
    11
    Rep Power
    0
    Originally Posted by Catacaustic
    Follow my example above. That's all there is to it.
    No I dont mean two rows I mean split a single cell into 2 so that it becomes two cells.

    I hope you can help!
  16. #9
  17. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2013
    Posts
    7
    Rep Power
    0
    I also need the detail to split.Looking forward the best answers.
  18. #10
  19. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2013
    Posts
    11
    Rep Power
    0
    Originally Posted by Abigail111
    I also need the detail to split.Looking forward the best answers.
    <td align="center" class="bb_row3">3.99</td>

    Do you use skype?
  20. #11
  21. Code Monkey V. 0.9
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2005
    Location
    A Land Down Under
    Posts
    2,066
    Rep Power
    1990
    To split like that you'd use colspan instead of rowspan. That's really the only difference.
  22. #12
  23. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2013
    Posts
    11
    Rep Power
    0
    Originally Posted by Catacaustic
    To split like that you'd use colspan instead of rowspan. That's really the only difference.
    Do you use skype or facebook?
  24. #13
  25. Code Monkey V. 0.9
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Mar 2005
    Location
    A Land Down Under
    Posts
    2,066
    Rep Power
    1990
    Originally Posted by dan1983
    Do you use skype or facebook?
    Why?
  26. #14
  27. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2013
    Posts
    11
    Rep Power
    0
    Originally Posted by dan1983
    Do you use skype or facebook?
    or how would I write the code?
  28. #15
  29. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2013
    Posts
    11
    Rep Power
    0
    Originally Posted by Catacaustic
    Why?
    Skype is good for comunicating. How would I write the code my friend?

    Dan
Page 1 of 2 12 Last
  • Jump to page:

IMN logo majestic logo threadwatch logo seochat tools logo