breeze351
asked on
Change # of columns and with in a table
Is there a way to have a table that has 10 columns and the last row only has 4?
I'm trying to center the 4 buttons at the end of the table.
For eample:
It would be easy if all the columns were the same size, but they are not.
I'm trying to center the 4 buttons at the end of the table.
For eample:
|-------------------------------------------------------------------------------------------------------------|
|col1 |col2 |col3 |col4 |col5 |col6 |col7 |col8 |col9 |col10 |
| |
| |button1| |button2| |button3| |button4| |
|-------------------------------------------------------------------------------------------------------------|
It would be easy if all the columns were the same size, but they are not.
Use CSS to style div elements. Tables made sense in 1996 before we had good browser support for CSS.
http://www.w3schools.com/css/
http://www.w3schools.com/css/
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I awoke in the middle of the night. "GOT IT!!!" Just set a different <DIV> in the CSS.
colspan=""
Though 4 will not go into 10 so you would end with something like 2,2,3,3