Results 1 to 5 of 5

Thread: How can i divide a cell in a row in HTML ?

  1. #1
    Join Date
    Dec 2009
    Posts
    52

    How can i divide a cell in a row in HTML ?

    Hi friends,

    I have just started to learn the Hyper Text Markup Language i.e.HTML I have just moved to the topic of table and i am unable to understand the division of rows. Explain me how can i split a cell in two rows. If i have the following piece of codes. I want to divide the last columns into two rows? please provide the source code also???

    <table>
    <tr>
    <td>...</td>
    <td>...</td>
    <td>...</td>
    <td>...</td>
    <td>...</td>
    </tr>
    </table>

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    Re: How can i divide a cell in a row in HTML ?

    This topic is considered to be the basic HTML .Hardly people remember such a kind of topic here is the solution to your problem. You just have to try out this code
    <table>
    <tr>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td rowspan='2'></td>
    </tr>
    </table>

    hope you understood...

  3. #3
    Join Date
    Apr 2008
    Posts
    2,005

    Re: How can i divide a cell in a row in HTML ?

    Your question is somewhat vey easy it seems like that you are very new to the HTML world for this you just have to include a small attribute of the <td> the rowspan attribute and this attribute will hold the value of the number of cells you want from the single i.e. the cell in that row will have that many number of cells that you have specified to that attribute.

    The code is here
    <td rowspan='2'><td>

    just replace this line in your code with the line in which you want two rows.

  4. #4
    Join Date
    May 2008
    Posts
    2,012

    Re: How can i divide a cell in a row in HTML ?

    The answer to your question is simply the rowspan attribute you can simply insert the rowspan attribute in the <td> tag and just specify the value of the attribute that can be any numbers starting from 1 like if you want 2 rows simply write <td rowspan = 2 > </td> this segment of code will divide that cell into 2 cells .
    after including this attribute your cde will look like this
    <table>
    <tr>
    <td></td>
    <td></td>
    td></td>
    <td></td>
    <td rowspan='2'></td>// be careful on this line
    </tr>
    </table>

  5. #5
    Join Date
    Apr 2008
    Posts
    1,948

    Re: How can i divide a cell in a row in HTML ?

    This is quite tricky if you are a new programmer. The rowspan attribute allows you divide a single cell in multiple table rows. Here’s an illustration:

    <table>
    <tr>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td rowspan='2'></td>
    </tr>
    </table>

    The rowspan attributes value divides the row into the number of cell specified its not that complicated that it require more explanation.

Similar Threads

  1. Can we have the realm divide into Sengoku?
    By Zakiy in forum Video Games
    Replies: 8
    Last Post: 13-09-2011, 11:22 PM
  2. The Divide in Fallout: New Vegas DLC
    By Titali in forum Video Games
    Replies: 5
    Last Post: 05-06-2011, 10:35 PM
  3. How to divide .vob file?
    By Ramiroo in forum Windows Software
    Replies: 3
    Last Post: 23-11-2009, 10:57 PM
  4. How to put background color for html cell
    By Preetish in forum Software Development
    Replies: 3
    Last Post: 07-08-2009, 03:32 PM
  5. Cell Padding and Cell Spacing in HTML
    By Claudius in forum Software Development
    Replies: 3
    Last Post: 14-05-2009, 01:35 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,570,244.46263 seconds with 17 queries