![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||||
| |||||
|
|
I am developing a Periodic Table of the Elements as<DIV>s ..(chuckle - just kidding!) |

|
a <TABLE at http://www.physci.org/test/chem/, or rather, the table itself is.. http://www.physci.org/test/chem/ptoe.html |
|
It contains valid HTML and CSS (checked 'moments' ago). |
|
Am testing in IE 6 on XP. My questions.. The 'width' value of table cells seems to have no effect, can they be set? If so, how? |
|
How can I collapse the gap between cells containing chemical elements? |
#3
| |||
| |||
|
|
I am developing a Periodic Table of the Elements as<DIV>s ..(chuckle - just kidding!) a <TABLE at http://www.physci.org/test/chem/, or rather, the table itself is.. http://www.physci.org/test/chem/ptoe.html It contains valid HTML and CSS (checked 'moments' ago). Am testing in IE 6 on XP. My questions.. The 'width' value of table cells seems to have no effect, can they be set? |
|
How can I collapse the gap between cells containing chemical elements? |
#4
| |||||
| |||||
|
|
I am developing a Periodic Table of the Elements as<DIV>s ..(chuckle - just kidding!) a <TABLE |
|
The 'width' value of table cells seems to have no effect, can they be set? |
|
Applies to: all elements but non-replaced inline elements, table rows, and row groups |
|
If so, how? |
|
How can I collapse the gap between cells containing chemical elements? |
#5
| |||
| |||
|
|
With the 'width' property either on the cells ('td' or 'th') or the column ('col' or 'colgroup'). You'll probably not be able to see it with the automatic table algorithm used by default. Try "table-layout: fixed. |
#6
| |||
| |||
|
|
In article <CC8pb.175895$bo1.105157 (AT) news-server (DOT) bigpond.net.au>, "Andrew Thompson" <andrew64 (AT) bigNOSPAMpond (DOT) com> wrote: I am developing a Periodic Table of the Elements ..... It contains valid HTML and CSS (checked 'moments' ago). You may want to check again: http://validator.w3.org/check?uri=ht...org%2Ftest%2Fc hem%2Fptoe.html |
|
The 'width' value of table cells seems to have no effect, can they be set? If so, how? Set the width for a cell, using CSS and don't set any width for the TABLE element, since it's resulting width will be the sum of the width of the cells. |
|
How can I collapse the gap between cells containing chemical elements? table ... cellspacing="0" |
#7
| |||||||
| |||||||
|
|
*Andrew Thompson* <andrew64 (AT) bigNOSPAMpond (DOT) com>: I am developing a Periodic Table of the Elements as<DIV>s ..(chuckle - just kidding!) a <TABLE Hey, I once wanted to do the same to test all the features that HTML4 tables provide, but quickly lost interest. |
|
The 'width' value of table cells seems to have no effect, can they be set? Yes. | Applies to: all elements but non-replaced inline elements, table rows, and row groups OTOH 'margin' doesn't apply to table-cells and the other internal table elements. If so, how? With the 'width' property either on the cells ('td' or 'th') or the column ('col' or 'colgroup'). You'll probably not be able to see it with the automatic table algorithm used by default. Try "table-layout: fixed. |
|
How can I collapse the gap between cells containing chemical elements? border-collapse: collapse; |
|
If you use the value 'separate', you can specify the distance with the 'border-spacing' property. IIRC IE doesn't support the latter. P.S.: Haven't elements 113 and 114 also been created already? |
|
"Periodic Table of the Elements" should be in 'caption', "(c) Andrew Thompson, 2003" in 'tfoot' |
|
and © exists. |
|
It's doubtful that you own any^Wmuch intellectual property on the data on that page, though. |
#8
| |||
| |||
|
|
*Andrew Thompson* <andrew64 (AT) bigNOSPAMpond (DOT) com>: I am developing a Periodic Table of the Elements as<DIV>s ..(chuckle - just kidding!) a <TABLE OT Perhaps you should use the <abbr> element for the symbols. That'd make it quite a bit more functional, no? |
|
How can I collapse the gap between cells containing chemical elements? border-collapse: collapse; Thank you. I thought there _must_ be a way to do it in CSS.. Note that IE 5/Mac does not support this. You'll have to resortto cellspacing for that browser. |
#9
| |||
| |||
|
|
"Brian" <usenet1 (AT) julietremblay (DOT) com.invalid-remove-this-part> wrote in message news:V2bpb.66875$9E1.280354 (AT) attbi_s52 (DOT) .. |
|
Perhaps you should use the <abbr> element for the symbols. That'd make it quite a bit more functional, no? Tried it for lithium. That is cool. Looks great in Mozilla 1.3a - does not seem to work in IE6 though. Since I will eventually be adding links to each of the element symbols*, I might simply (and improperly, as I understand from previous posts) use.. a href="lithium.jsp" TITLE="Lithium">Li</a If it does not work for a particular browser, it should not be a great loss, since the visitor would just need click the link for further details in any case. |
#10
| |||
| |||
|
|
If it does not work for a particular browser, it should not be a great loss, since the visitor would just need click the link for further details in any case. Scrap that - reconsidered. Since I am prepared to lose the pop-up text for 'lesser abled' browsers, I may as well use the <attr> as it seems intended, and wrap that in an unTitled <a>.. For demonstraion purposes I now have a version up that uses abbr> for lithium a title> for beryllium a><abbr title> for phosphorus. I'll go with the format for phosphorus. |
![]() |
| Thread Tools | |
| Display Modes | |
| |