Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   HTML (http://www.velocityreviews.com/forums/f31-html.html)
-   -   Table alignment (http://www.velocityreviews.com/forums/t752188-table-alignment.html)

OccasionalFlyer 07-30-2011 04:39 AM

Table alignment
 
In trying to improve what someone else put on www.ibr-bbr.org about
IBR's annual meeting next November (near the bottom of the page), I
have tried to put the content into multiple tables. (I don't claim to
be a web designer, so there may be better ways to do this, and I
readily accept suggestions.)
I have three main tables, with the first table containing two tables.
I have two questions.
1. The <th> of the first table, which says "Nov. 18- Friday" has a
colspan="3" in it but it is not spanning three columns. What do I need
to do to make a <th> span all three columns that the inner tables
have?

2. The second main table, which starts with
<table border="1">
<tr>
<th colspan="3">
Nov. 19 Saturday 8:30 A.M.-12:30 P.M. IBR Morning Session
</th>
</tr>

is much wider than the table above it. How do I get all the tables in
this section to align the same, all with the same left margin as the
image above it?

Thanks.

Ken

Andy 07-30-2011 09:02 AM

Re: Table alignment
 


"OccasionalFlyer" <javajedi2@yahoo.com> wrote in message
news:2313acdf-8d77-45b0-a5c4-703a1a7985cd@f39g2000prb.googlegroups.com...
> In trying to improve what someone else put on www.ibr-bbr.org about
> IBR's annual meeting next November (near the bottom of the page), I
> have tried to put the content into multiple tables. (I don't claim to
> be a web designer, so there may be better ways to do this, and I
> readily accept suggestions.)
> I have three main tables, with the first table containing two tables.
> I have two questions.
> 1. The <th> of the first table, which says "Nov. 18- Friday" has a
> colspan="3" in it but it is not spanning three columns. What do I need
> to do to make a <th> span all three columns that the inner tables
> have?
>
> 2. The second main table, which starts with
> <table border="1">
> <tr>
> <th colspan="3">
> Nov. 19 Saturday 8:30 A.M.-12:30 P.M. IBR Morning Session
> </th>
> </tr>
>
> is much wider than the table above it. How do I get all the tables in
> this section to align the same, all with the same left margin as the
> image above it?
>
> Thanks.
>
> Ken
>



Hi Ken,

I've done a quick&dirty update to the page...

http://homepage.ntlworld.com/andy.j.bailey/example.html

....just copy the source code and upload to your server.


Andy


richard 07-30-2011 01:57 PM

Re: Table alignment
 
On Fri, 29 Jul 2011 21:39:15 -0700 (PDT), OccasionalFlyer wrote:

> In trying to improve what someone else put on www.ibr-bbr.org about
> IBR's annual meeting next November (near the bottom of the page), I
> have tried to put the content into multiple tables. (I don't claim to
> be a web designer, so there may be better ways to do this, and I
> readily accept suggestions.)
> I have three main tables, with the first table containing two tables.
> I have two questions.
> 1. The <th> of the first table, which says "Nov. 18- Friday" has a
> colspan="3" in it but it is not spanning three columns. What do I need
> to do to make a <th> span all three columns that the inner tables
> have?
>
> 2. The second main table, which starts with
> <table border="1">
> <tr>
> <th colspan="3">
> Nov. 19 Saturday 8:30 A.M.-12:30 P.M. IBR Morning Session
> </th>
> </tr>
>
> is much wider than the table above it. How do I get all the tables in
> this section to align the same, all with the same left margin as the
> image above it?
>
> Thanks.
>
> Ken


First, clean up your errors by going here
http://validator.w3.org/

<table><tr><th>data</th></tr></table>
Should be simply <table><th>data</th></table>

IMO, create one table instead of 3.
Left most column then will be the date.

The colspan does not span 3 columns because of the leading <tr>.
<th> is a row tag which is acted upon differently.

Jonathan N. Little 07-30-2011 02:45 PM

Re: Table alignment
 
richard wrote:

> <table><tr><th>data</th></tr></table>
> Should be simply<table><th>data</th></table>


No richard this is absolutely incorrect. TH and TD elements must be
contained by TR elements.

"<!ELEMENT TR - O (TH|TD)+ -- table row -->"

<http://www.w3.org/TR/html401/struct/tables.html#edef-TR>

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

richard 07-30-2011 03:01 PM

Re: Table alignment
 
On Sat, 30 Jul 2011 10:45:14 -0400, Jonathan N. Little wrote:

> richard wrote:
>
>> <table><tr><th>data</th></tr></table>
>> Should be simply<table><th>data</th></table>

>
> No richard this is absolutely incorrect. TH and TD elements must be
> contained by TR elements.
>
> "<!ELEMENT TR - O (TH|TD)+ -- table row -->"
>
> <http://www.w3.org/TR/html401/struct/tables.html#edef-TR>


You are correct.
It's been awhile since I've actually worked with Th so I had forgotten that
it was necessary to include the th in a tr.

xx x 07-31-2011 01:30 PM

Re: Table alignment
 
Will email you the code.
Your culprit is

<td colspan="3">10 am</td>

which would span your time over 3 columns.



All times are GMT. The time now is 01:45 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57