HTML - How Do I Do A Rowspan?
i am supposed to make a resume in a table, so i have used this template and i can see how colspan works for width, but i cannot get rowspan to work:
Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>HTML Practice Tables</title> <style type="text/css"> /* embedded style sheet */ .centerme{ text-align:center; } .format{ margin: 0 auto; width: 1000px; border: solid 3px #0000FF; } caption{ color: #003300 } .courses{ text-align:right; background-color:#CCCCCC; } th.days{ background-color:#99FF66; } .fullwidth{ width:100%; } </style> </head> <body> <div class="centerme"> <table class="format" cellspecing="2" border="1"> <caption>Beandip</caption> <colgroup width="25%" class="courses"></colgroup> <colgroup width="75%" span="5"></colgroup> <thead> <th colspan ="6">top colspan</th> <tr> <!-- these go together on the samw line --> <th rowspan="10" class="courses">Education</th> <th scope="column" class="days">resume info for 1st column</th> </tr> <tfoot> <tr> <th colspan ="6">bottom colspan</th> </tr> </tfoot> </thead> <tr> <!-- this is for the rows going left to right --> <th scope="row" class="courses">Professional Experience</th> <td>my resume info here for 2nd column</td> </tr> <tr> <th scope="row" class="courses">Volunteer Experience</th> <td>volunteer info</td> </tr> <tr> <th scope="row" class="courses">References</th> <td colspan="5">references info</td> </tr> </table> </div> </body> </html> how can i get the side rows to span down? this is eventually what the resume layout will look like (only in tables): http://www.scribd.com/doc/27538087/S...e-Table-Format Similar TutorialsHi, The link is to my HTML that has 1 table showing what I am trying to do and 6 tables of related things that I CAN do -- but I can't get what I want. I am thinking it can't be done (why?). I searched, but didn't find anything. I hope the HTML makes my objective clear. Thanks, Dave http://dkcromley.inoutbox.com/table3x3.html There's something I want to do with a table but I can't quite figure it out. Here's a basic table for demonstration purposes: Code: <html> <body> <table> <thead> <tr> <th>Item Header</th> <th>Link Header</th> </tr> </thead> <tbody> <tr> <td>Item 1</td> <td> <a href="#">Link 1</a> <br /> <a href="#">Link 2</a> </td> </tr> </tbody> </table> </body> </html> Ultimately what I want to do is put each link (Link 1 and Link 2) in their own rows then make the whole content area clickable with "display: block;" and then have the background change color with a:hover... but I want each of those links to still be connected to "Item 1" so that if a user clicks "Item Header" to sort the column alphabetically, both links will remain connected to the Item 1 "master row" (if you will). Here's a really quick example of what I mean (done hastily in Gimp 2.6): (Note: The blue area is what would would happen once the link is highlighted with the mouse) I'm sure it's probably really simple and likely involves rowspan in someway, but I've tried a couple of things and just can't get it to do what I want. Any help would be appreciated. I was playing with the effect rowspan has on a table. I am including three sets of code. The first one is the original table. The second and third one are attempts to use rowspan. First of all I used table width = a percent so that the table would show on all monitors without using the scroll bar. In the second table coding, I added rowspan, I don't know why the next row moved up into that row. So, in the third table coding, I added an implicit colspan="13" because I wanted just 13 columns. 1. I am wondering whether one can use a table width as a percent and also use rowspan? 2. Why does the added rowspan force the next row up into that row? I'm not missing the </tr> tag so the next <tr> should start a new row. 3. Somehow I must be missing the details of using rowspan correctly. I can get around my problem by changing things but I want to understand the use of rowspan in tables. Thank you. Pabu I'm trying to create a table that looks like this: Code: ============ || || || || || || ======= || || || || || ============ I use this code: Code: <table border='1'> <tr> <td>Text</td> <td rowspan='2'>&nbsp;</td> </tr> <tr> <td colspan='2'>Text</td> </tr> </table> But it comes out looking like this: Code: ============ || || || || || || =======----- || | || || | || ============ with 2 of the lines continuing. I can't seem to get it like the first picture. Any help is appreciated. Good afternoon! Where has the sun gone I'm freezing! Is it possible to have a table with rowspan with the text in the rowspan to read vertically (like taking an entire sentence after its been typed and rotating it 90ccw)? Hi got this problem with rowspan in a table I'd like it too look like the picture, but can't can anyone help me I need to accomplish a layout like this: Code: <table> <tr> <td colspan=2 rowspan=2>? by ?</td> <td width=7 height=7>7x7</td> </tr> <tr> <td height=7>?x7</td> </tr> <tr> <td height=7 width=7>7x7</td> <td height=7>?x7</td> <td height=7 width=7>7x7</td> </tr> </table> <!-- expected: _____________ | ? x ? |7x7| | |7x?| |7x7|?x7|7x7| actual (ie): __________________ | ? x ? |7x ?/2 | | |7x ?/2 | | ?/2 x7| ?/2 x7| 7x7 | --> Any idea how to overcome this ie oddity? Hi, New to this forum, so apologies if this has been answered before--couldn't find the solution anywhere. I'm working on a page (http://www.dinacheney.com/index.htm), and the rowspan effect is working well on FF. On IE, the chalkboard image gets cut off and the image doesn't line up properly. Is this just rowspan weirdness and I need to rewrite the page using divs or css? Or is there something simpler I can do? All advice is much appreciated!!! Thanks in advance! |