Solved

HTML row span

Posted on 2014-11-06
1
112 Views
Last Modified: 2014-11-11
I have an html table. The last column needs to span a number of rows. I want the content (a form submit button) to be aligned in the middle vertically.

Let's say there are 7 columns.

In the first row do I specify the last column by this structure:

<tr>
     <td>Column 1</td>
     <td>Column 2</td>
                etc.
     <td rowspan="5" valign="middle">Col 7 content</td>
</tr>

And then ALL the other rows have only 6 columns?

Or does it matter which row I put the spanning column in?

Thanks
0
Comment
Question by:Richard Korts
1 Comment
 
LVL 2

Accepted Solution

by:
Amish Sanghrajka earned 500 total points
ID: 40427525
Hi,

You needn't have asked the question, you've hit the nail on the head there. That code should work by putting the rowspan in the 7th column on the first row and then simply only putting in 6 columns for the rest of the rows.

Kind regards,
Amish.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now