Solved

HTML row span

Posted on 2014-11-06
1
111 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Change month dropdown 5 34
Making my existing website "mobile friendly"... 10 35
Show banners that are blocked by Ad Muncher 10 46
Centering Vertically 3 27
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

912 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

20 Experts available now in Live!

Get 1:1 Help Now