![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: May 2006
Posts: 6
Rep Power: 0
![]() |
Table issues...
I'm having issues with a table. Sad, isn't it.
Whenever I try to add mutiple cells in one row, they add onto the end (leaving a huge cell and a mini cell) rather than placing themselves inside the main structure of the table, screwing my code up and generally being a pain. Is there a way to keep it inside the table's original borders? There's only one row I need multiple cells for (it's single cell otherwise), and that could possibly be the problem. Thanks in advance for any help given. |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Tables, by their very nature, have an equal number of cells in each row, and an equal number of cells in each column. To pervert this you need to use the rowspan and colspan attributes of a cell. The sum of the number of cells, whether they are individual or part of a span, still needs to be the same for each row and each column. In other words, you need to define a good table, then remove cell walls, not add or remove cells. Have a look an an HTML tutorial.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Aug 2006
Posts: 13
Rep Power: 0
![]() |
Try to post your table code here, and then it will be easier to help you. But it's true what DaWei says. You need to learn about colspan and rowspan to do that you want.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| test | lostcauz | Coder's Corner Lounge | 9 | Jul 18th, 2006 3:20 PM |
| 100% Table Height using Firefox | hoffmandirt | ASP.NET | 2 | Jun 23rd, 2006 9:34 AM |
| mysql table view require()or suggestions. | piercy | PHP | 15 | Apr 28th, 2006 6:29 AM |
| [beginner] how to reverse the contents of a table | mariogarcia | Java | 4 | Nov 4th, 2005 3:12 AM |
| word wrap in a table cell? | kerriganm | HTML / XHTML / CSS | 4 | May 6th, 2005 5:38 PM |