Jump to content

Tables, Nested Tables Etc.


Recommended Posts

Okay, This is reeeeeeally pissing me off. I'm having a fair bit of trouble making a simple fucking table for my programming assignment.

It's supposed to have row groups for the header, table body, and footer. And that's where I keep fucking my code up, I think.

So, like, so far it looks like::

<table border="7" bordercolor="brown" bordercolorlight="tan" cellspacing="0"

cellpadding="2" rules="groups" width="70%" style="font-family: Arial, Helvetica, sans-serif; font-size: 0.8em">

<caption style="font-weight: bold">Cougar Sightings This Year</caption>

<thead>

<tr style="background-color:pink">

<th>Location</th>

<th>Jan</th>

<th>Feb</th>

<th>Mar</th>

<th>Apr</th>

<th>May</th>

<th>TOTAL</th>

</tr>

</thead>

<tfoot>

<tr style="background-color:pink" font-weight="bold">

<th>Park City</th>

<th>Riley</th>

<th>Dixon</th>

<th>Total</th>

</tr>

</tfoot>

<tr style="background-color:pink">

<tbody>

<th>0</th>

<th>2</th>

<th>0</th>

But when I test it in IE & FireFox, it comes out looking all mangled and wrong. And I don't know what I'm doing wrong. I've told my instructor that I'm having a fair bit of trouble with this (and he says tables is one of the hardest chapters, as well as forms). He put up an instructional video on the campus website and has posted some notes for it, but I still don't understand. :wacko:

I think I've said enough.. maybe. Can someone help? :ohwell:

Link to comment
Share on other sites

It works fine when you finish the code...

I'm gonna finish the code real quick.

For future reference, you bastard, don't be so cryptic. :angry:

You're a bastard and I hate you, I finished the code and it's not working right AT ALL.

<table border="7" bordercolor="brown" bordercolorlight="tan" cellspacing="0"

cellpadding="2" rules="groups" width="70%" style="font-family: Arial, Helvetica, sans-serif; font-size: 0.8em">

<caption style="font-weight: bold">Cougar Sightings This Year</caption>

<thead>

<tr style="background-color:pink">

<th>Location</th>

<th>Jan</th>

<th>Feb</th>

<th>Mar</th>

<th>Apr</th>

<th>May</th>

<th>TOTAL</th>

</tr>

</thead>

<tfoot>

<tr style="background-color:pink" font-weight="bold" align="right">

<th>Park City</th>

<th>Riley</th>

<th>Dixon</th>

<th>Total</th>

</tr>

</tfoot>

<tr style="background-color:pink" align="right">

<tbody>

<th>0</th>

<th>2</th>

<th>0</th>

<th>2</th>

<th>1</th>

<th>2</th>

<th>1</th>

<th>1</th>

<th>3</th>

<th>3</th>

<th>3</th>

<th>1</th>

<th>4</th>

<th>2</th>

<th>4</th>

<th>10</th>

<th>9</th>

<th>10</th>

<th>2</th>

<th>5</th>

<th>5</th>

<th>7</th>

<th>10</th>

<th>29</th>

</tbody>

Edited by Queer Eye For The Pirate Guy
Link to comment
Share on other sites

Guest DiamondDust

YOur extending your table too far.




<table border="7" bordercolor="brown" bordercolorlight="tan" cellspacing="0"

cellpadding="2" rules="groups" width="70%" style="font-family: Arial, Helvetica, sans-serif; font-size: 0.8em">

<caption style="font-weight: bold">Cougar Sightings This Year</caption>

<thead>

<tr style="background-color:pink">

<th>Location</th>

<th>Jan</th>

<th>Feb</th>

<th>Mar</th>

<th>Apr</th>

<th>May</th>

<th>May</th>

<th></th>

<th></th>

<th></th>

<th></th>

<th></th>

<th></th>

<th></th>

<th></th>

<th></th>

<th></th>

<th></th>

<th></th>

<th></th>

<th></th>

<th></th>

<th></th>

<th></th>

</tr>

</thead>

<tfoot>

<tr style="background-color:pink" font-weight="bold" align="right">

<th>Park City</th>

<th>Riley</th>

<th>Dixon</th>

<th>Total</th>

<th></th>

<th></th>

<th></th>

<th></th>

<th></th>

<th></th>

<th></th>

<th></th>

<th></th>

<th></th>

<th></th>

<th></th>

<th></th>

<th></th>

<th></th>

<th></th>

<th></th>

<th></th>

<th></th>

<th></th>

</tr>

</tfoot>

<tr style="background-color:pink" align="right">

<tbody>

<th>0</th>

<th>2</th>

<th>0</th>

<th>2</th>

<th>1</th>

<th>2</th>

<th>1</th>

<th>1</th>

<th>3</th>

<th>3</th>

<th>3</th>

<th>1</th>

<th>4</th>

<th>2</th>

<th>4</th>

<th>10</th>

<th>9</th>

<th>10</th>

<th>2</th>

<th>5</th>

<th>5</th>

<th>7</th>

<th>10</th>

<th>29</th>

</tbody>


Should work out right. Just fill the info in the TH tags.

Link to comment
Share on other sites

But..

all..

the info that I need.. is already filled in. :mellow:

:@

Not to mention that it looks just like it did before if I use the code you put there. :huh:

I wish I could scan a pic of how it's supposed to look, but my scanner is being shitty. :@

Edited by Queer Eye For The Pirate Guy
Link to comment
Share on other sites

  • Admin

But..

all..

the info that I need.. is already filled in. :mellow:

:@

Not to mention that it looks just like it did before if I use the code you put there. :huh:

I wish I could scan a pic of how it's supposed to look, but my scanner is being shitty. :@

Need to see what it's meant to look like. Do they actually teach you to code like that btw? lol.

Link to comment
Share on other sites

The best I can say is that it's supposed to look more like:

MONTH ->January February March April Etc.

Park City 5 6

Riley 2 7

Dixon 3 9

TOTAL:

Er.. does that help any, at all? :blush:

And, well, sometimes they teach us like that, but for the most part I'm a disorganized bastard. ^^;

EDIT: No, no that doesn't really help. Argh. I can't scan how it's supposed to look though.

One more quick edit to try and see if I can't replicate it with a text table.

Okay, that's not helping AT ALL. I'm sorry. Does anyone understand what the fuck I'm trying to make it look like, though?!

Edited by Queer Eye For The Pirate Guy
Link to comment
Share on other sites

Oh my. :blush:

I just figured out what I was doing wrong. I wasn't putting the data in rows, was I? :blush:

like, for instance, the cities should look like::

<tr>Park City</tr>

<tr>Dixon</tr>

<tr>Riley</tr>

as opposed to using <th>, right? :blush: I feel so stupid. :crying:

Link to comment
Share on other sites

Oh my.

I just figured out what I was doing wrong. I wasn't putting the data in rows, was I?

like, for instance, the cities should look like::

<tr>Park City</tr>

<tr>Dixon</tr>

<tr>Riley</tr>

as opposed to using <th>, right? I feel so stupid.

Thats what I was thinking, but I'm not good with HTML so I kept my mouth shut.

Speak up next time. :P

Link to comment
Share on other sites

  • Admin

The best I can say is that it's supposed to look more like:

MONTH ->January February March April Etc.

Park City 5 6

Riley 2 7

Dixon 3 9

TOTAL:

Er.. does that help any, at all? :blush:

And, well, sometimes they teach us like that, but for the most part I'm a disorganized bastard. ^^;

EDIT: No, no that doesn't really help. Argh. I can't scan how it's supposed to look though.

One more quick edit to try and see if I can't replicate it with a text table.

Okay, that's not helping AT ALL. I'm sorry. Does anyone understand what the fuck I'm trying to make it look like, though?!

Why not try making it in Word?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. To learn more, see our Privacy Policy