It seems these two tags don't work well, except in MSIE for PC.
See http://mapage.noos.fr/dardelf4/LaFon...es_fables.html
with some other browser. I have tried 4 browsers for the Mac, and none
accepts to align the last two columns to the right.
Is there a way to achieve that without putting an ALIGN="right" into
every cell ?
Thanks in advance for any hint.
--
François de Dardel
http:/mapage.noos.fr/dardelf/
Faber est suae quisque fortunae
Enlever le quatorze pour m'écrire
Remove fourteen in the address to send mail 7 3236
François de Dardel <da*******@noos.fr> wrote: It seems these two tags don't work well, except in MSIE for PC.
They work just fine in Opera and Gecko (with one exception).
See http://mapage.noos.fr/dardelf4/LaFon...es_fables.html with some other browser. I have tried 4 browsers for the Mac,
What were the four browsers?
and none accepts to align the last two columns to the right.
Gecko doesn't support the align attribute on <col>. This is a long
standing annoyance.
It's probably related to the fact that in CSS their are only four
properties that can be applied to columns - border, background, width
and visibility. Hence is is impossible to replicate the align
attribute of col with CSS. http://www.w3.org/TR/CSS21/tables.html#q4
Is there a way to achieve that without putting an ALIGN="right" into every cell ?
For that table:
td {align: left;}
td + td {align: right;}
The first line matches all table cells, the second line matches all
table cells that are siblings of a table cell and hence matches all
but the first cell in a row.
Or,
td {align: right;}
tr td:first-child {align: left;}
Which should be obvious.
Neither approach is supported by IE so you'll need to keep the aligna
ttributes for that browser.
For more complex tables such techniques can get tedious.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
In article <c3********************************@4ax.com>,
Steve Pugh <st***@pugh.net> wrote: François de Dardel <da*******@noos.fr> wrote:
It seems these two tags don't work well, except in MSIE for PC. They work just fine in Opera and Gecko (with one exception).
See http://mapage.noos.fr/dardelf4/LaFon...es_fables.html with some other browser. I have tried 4 browsers for the Mac,
What were the four browsers?
and none accepts to align the last two columns to the right.
Gecko doesn't support the align attribute on <col>. This is a long standing annoyance. It's probably related to the fact that in CSS their are only four properties that can be applied to columns - border, background, width and visibility. Hence is is impossible to replicate the align attribute of col with CSS. http://www.w3.org/TR/CSS21/tables.html#q4
Actually, the problem seems to be with the order in which Gecko does
it processing. It needs to figure out what alignment to use in a
table cell before it has figured out which column that cell is in.
And because the <td> element is not actually within the textual scope
of the <col> element. The technical difficulties are explained at http://ln.hixie.ch/?start=1070385285&count=1
IE sort of supports it, but it can do so because it doesn't correctly
apply CSS rules to tables. Is there a way to achieve that without putting an ALIGN="right" into every cell ? For that table: td {align: left;} td + td {align: right;}
The first line matches all table cells, the second line matches all table cells that are siblings of a table cell and hence matches all but the first cell in a row.
Or, td {align: right;} tr td:first-child {align: left;}
Which should be obvious.
How well does this work when rowspan and/or colspan attributes are used?
The first <td> following a <tr> could well be in the second or third
column.
Neither approach is supported by IE so you'll need to keep the align attributes for that browser.
For more complex tables such techniques can get tedious.
--
= Eric Bustad, Norwegian bachelor programmer ek*@hos1cad.ho.att.com (Eric Kenneth Bustad) wrote: In article <c3********************************@4ax.com>, Steve Pugh <st***@pugh.net> wrote:
Gecko doesn't support the align attribute on <col>. This is a long standing annoyance. It's probably related to the fact that in CSS their are only four properties that can be applied to columns - border, background, width and visibility. Hence is is impossible to replicate the align attribute of col with CSS. http://www.w3.org/TR/CSS21/tables.html#q4
Actually, the problem seems to be with the order in which Gecko does it processing. It needs to figure out what alignment to use in a table cell before it has figured out which column that cell is in. And because the <td> element is not actually within the textual scope of the <col> element. The technical difficulties are explained at http://ln.hixie.ch/?start=1070385285&count=1
Hixie's explanation is telling us why CSS only allows those four
properties to be set and hence is the explanation for the explanation
that I gave.
IE sort of supports it, but it can do so because it doesn't correctly apply CSS rules to tables.
And in this case Gecko doesn't correctly apply HTML to tables.
Remember that next time someone claims that Gecko has full HTML 4
support. ;-)
Opera manages to support the HTML align attribute and to get most of
CSS right, so it's not impossible. td {align: right;} tr td:first-child {align: left;}
How well does this work when rowspan and/or colspan attributes are used? The first <td> following a <tr> could well be in the second or third column.
IIRC, it's still the first-child of the <tr>. So yes it will fail with
row/col spanned cells. I've only ever used something like this on
simpl-ish date tables.
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Steve Pugh wrote: ek*@hos1cad.ho.att.com (Eric Kenneth Bustad) wrote:
In article <c3********************************@4ax.com>, Steve Pugh <st***@pugh.net> wrote:
Gecko doesn't support the align attribute on <col>.
The technical difficulties are explained at http://ln.hixie.ch/?start=1070385285&count=1
Hixie's explanation is telling us why CSS only allows those four properties
Hixie's article makes sense to me, but perhaps I've missed something. IE sort of supports it, but it can do so because it doesn't correctly apply CSS rules to tables.
And in this case Gecko doesn't correctly apply HTML to tables. Remember that next time someone claims that Gecko has full HTML 4 support. ;-)
You've lost me. Did you mean to write that Gecko doesn't apply *CSS* to
tables?
Opera manages to support the HTML align attribute and to get most of CSS right, so it's not impossible.
Has it solved the problem Hixie describes with CSS for col elements?
--
Brian
Brian <us*****@julietremblay.com.invalid> wrote: Steve Pugh wrote: ek*@hos1cad.ho.att.com (Eric Kenneth Bustad) wrote: IE sort of supports it, but it can do so because it doesn't
And in this case Gecko doesn't correctly apply HTML to tables. Remember that next time someone claims that Gecko has full HTML 4 support. ;-)
You've lost me. Did you mean to write that Gecko doesn't apply *CSS* to tables?
No. I mean that Gecko doesn't support the align attribute of the <col>
element. Purely an HTML issue. Opera manages to support the HTML align attribute and to get most of CSS right, so it's not impossible.
Has it solved the problem Hixie describes with CSS for col elements?
Opera supports the four permitted CSS properties for columns.
It doesn't need to "solve" the "problem" - it follows the spec.
Opera supports the HTML align attribute (which Gecko doesn't) AND it
supports a CSS for tables in general, not limited to columns, rather
well (which IE doesn't).
Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor
Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
On 2005-02-24 10:10:09 +0100, Steve Pugh <st***@pugh.net> said: François de Dardel <da*******@noos.fr> wrote:
It seems these two tags don't work well, except in MSIE for PC.
They work just fine in Opera and Gecko (with one exception).
See http://mapage.noos.fr/dardelf4/LaFon...es_fables.html with some other browser. I have tried 4 browsers for the Mac,
What were the four browsers?
1. Safari
2. Netscape 7.1
3. MSIE 5.2 (Mac !)
4. iCab and none accepts to align the last two columns to the right.
--
François de Dardel
http:/mapage.noos.fr/dardelf/
Faber est suae quisque fortunae
Enlever le quatorze pour m'écrire
Remove fourteen in the address to send mail
Eric Kenneth Bustad wrote: In article <c3********************************@4ax.com>, Steve Pugh <st***@pugh.net> wrote: >François de Dardel <da*******@noos.fr> wrote: > >>It seems these two tags don't work well, except in MSIE for PC. > >They work just fine in Opera and Gecko (with one exception). > >>See >> http://mapage.noos.fr/dardelf4/LaFon...es_fables.html >>with some other browser. I have tried 4 browsers for the Mac, > >What were the four browsers? > >>and none accepts to align the last two columns to the right. > > >Gecko doesn't support the align attribute on <col>. This is a long >standing annoyance. >It's probably related to the fact that in CSS their are only four >properties that can be applied to columns - border, background, width >and visibility. Hence is is impossible to replicate the align >attribute of col with CSS. > http://www.w3.org/TR/CSS21/tables.html#q4
Actually, the problem seems to be with the order in which Gecko does it processing. It needs to figure out what alignment to use in a table cell before it has figured out which column that cell is in. And because the <td> element is not actually within the textual scope of the <col> element. The technical difficulties are explained at http://ln.hixie.ch/?start=1070385285&count=1
IE sort of supports it, but it can do so because it doesn't correctly apply CSS rules to tables.
>>Is there a way to achieve that without putting an ALIGN="right" into >>every cell ? >For that table: >td {align: left;} >td + td {align: right;} > >The first line matches all table cells, the second line matches all >table cells that are siblings of a table cell and hence matches all >but the first cell in a row. > >Or, >td {align: right;} >tr td:first-child {align: left;} > >Which should be obvious.
How well does this work when rowspan and/or colspan attributes are used? The first <td> following a <tr> could well be in the second or third column.
>Neither approach is supported by IE so you'll need to keep the align >attributes for that browser. > >For more complex tables such techniques can get tedious.
With Gecko browsers (Mozilla, Firefox, Netscape), this is one of
the oldest bugs. See
<URL:https://bugzilla.mozilla.org/show_bug.cgi?id=915>. Since it
was written in 1998, approximately 65 other Mozilla bugs have been
closed as duplicates of bug #915.
One holdup blocking a fix was a lack of consensus on how to
interpret the HTML 4.01 specification that relates to this bug.
That may have been resolved. However, the last attempted fix
(November) didn't seem to work.
In the end, this is not considered something that is inherent in
Gecko browsers. Instead, it is recognized as a bug. Efforts are
being made to fix it.
--
David E. Ross
<URL:http://www.rossde.com/>
I use Mozilla as my Web browser because I want a browser that
complies with Web standards. See <URL:http://www.mozilla.org/>. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Neil Zanella |
last post by:
Hello,
I would like to know whether having a <table> element with two <tr> elements
each containing one <td> elements and two <td> elements, respectively, is
legal from the point of view of...
|
by: Woolly Mittens |
last post by:
I tried validating my gallery page using your validator.
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.woollymittens.nl%2Fcontent%2Fgallery%2Findex.asp
To my surprise it informed me that...
|
by: EasyRider41 |
last post by:
I am trying to merge to scripting samples I for on a source code web
site and having limited luck. Then first one is called Zebra Tables
witch colors alternate rows of a table to look beter. The...
|
by: Jim M |
last post by:
I have had great success with using <iframe> with overflow-y set to auto. I
can get a similar look with the <iframe> tag.
BUT... In all cases I need to have fixed heights. Is there a way to...
|
by: |
last post by:
I can't get IE 6 to read the values in my <SELECT..> data entry fields.
Netscape 7 and Opera see them, and IE will pass the values to the
database, but the javascript validation script gets a null...
|
by: nivas.meda |
last post by:
Hi,
I have an excel sheet with a graph and cells.If i change the value in
the excel cells the graph will reflect.Now i am going to implement this
functionality in html page.I successfully saved...
|
by: mathewgk80 |
last post by:
HI all,
I am having popup calendar Javascript code. But i dont know how it is connecting to asp.net code.. I am using asp.net,c#.net and also using 3tier architecture with master page....
I...
|
by: Roedy Green |
last post by:
The only browser I have encountered that supports
<colgroup><col class="behold"></colgroup>
to apply a CSS style to a whole column, is Microsoft Internet
Explorer. I have been told it SHOULD NOT...
|
by: matheussousuke |
last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails.
The goal is: Make it send the email with the URL...
|
by: lllomh |
last post by:
Define the method first
this.state = {
buttonBackgroundColor: 'green',
isBlinking: false, // A new status is added to identify whether the button is blinking or not
}
autoStart=()=>{
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: NeoPa |
last post by:
Hello everyone.
I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report).
I know it can be done by selecting :...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
|
by: Teri B |
last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course.
0ne-to-many. One course many roles.
Then I created a report based on the Course form and...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM)
Please note that the UK and Europe revert to winter time on...
|
by: nia12 |
last post by:
Hi there,
I am very new to Access so apologies if any of this is obvious/not clear.
I am creating a data collection tool for health care employees to complete. It consists of a number of...
|
by: NeoPa |
last post by:
Introduction
For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
|
by: GKJR |
last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...
| |