Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 11th, 2007, 7:32 AM   #1
Glastea
Newbie
 
Join Date: May 2006
Posts: 6
Rep Power: 0 Glastea is on a distinguished road
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.
Glastea is offline   Reply With Quote
Old Jan 11th, 2007, 9:07 AM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Jan 12th, 2007, 1:54 AM   #3
public2
Newbie
 
Join Date: Aug 2006
Posts: 13
Rep Power: 0 public2 is on a distinguished road
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.
public2 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:54 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC