span.original
{ border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px;
overflow: hidden; padding: 0; position: absolute; width: 1px; }
One could write:
... my course, Which holds not
<span class="American">color</span>
<span class="British">colour</span>
with the time ...
and offer two different style sheets "American" and "British". Then
people could choose the language to be used for the display in
their browsers where they choose a stylesheet.
However, could there be a safe fallback for browsers without CSS?
BTW: This is a quotation from Shakespeare who, according to my
sources, actually wrote "color", even though he was British AFAIK!
PS: I do not want to go through the hassle to prepare two
different documents when they differ only by a few words.
I.e., I just need two different element types, say "normal"
and "invisible", so that without customizations in CSS,
"normal" elements are visible and "invisible" are not:
... my course, Which holds not
<normal class="American">color</span>
<invisible class="British">colour</span>
with the time ...
<span class="original">color</span></span>with the time ...</p></body></html>
One could write:
... my course, Which holds not
<span class="American">color</span>
<span class="British">colour</span>
with the time ...
and offer two different style sheets "American" and
"British". Then people could choose the language to
be used for the display in their browsers where they
choose a stylesheet.
However, could there be a safe fallback for browsers
without CSS?
I.e., I just need two different element types, say "normal"
and "invisible", so that without customizations in CSS,
"normal" elements are visible and "invisible" are not:
... my course, Which holds not
<normal class="American">color</span>
<invisible class="British">colour</span>
with the time ...
. It's just that I am not aware of such element types!
BTW: This is a quotation from Shakespeare who, according to my
sources, actually wrote "color", even though he was British AFAIK!
ram@zedat.fu-berlin.de (Stefan Ram) writes:
BTW: This is a quotation from Shakespeare who, according to my
sources, actually wrote "color", even though he was British AFAIK!
Spelling was not standardised then and most editions use both spellings
for colour/color. The one I have use colour in that particular quote.
Of course, what he actually wrote (by hand for the players) is another matter. I don't know whether the early publishers took care to copy the various spellings. It was probably not considered very important.
One could write:
... my course, Which holds not
<span class="American">color</span>
<span class="British">colour</span>
with the time ...
and offer two different style sheets "American" and
"British". Then people could choose the language to
be used for the display in their browsers where they
choose a stylesheet.
However, could there be a safe fallback for browsers
without CSS?
I.e., I just need two different element types, say "normal"
and "invisible", so that without customizations in CSS,
"normal" elements are visible and "invisible" are not:
... my course, Which holds not
<normal class="American">color</span>
<invisible class="British">colour</span>
with the time ...
. It's just that I am not aware of such element types!
BTW: This is a quotation from Shakespeare who, according to my
sources, actually wrote "color", even though he was British AFAIK!
PS: I do not want to go through the hassle to prepare two
different documents when they differ only by a few words.
One could write:
... my course, Which holds not
<span class="American">color</span>
<span class="British">colour</span>
with the time ...
and offer two different style sheets "American" and
"British". Then people could choose the language to
be used for the display in their browsers where they
choose a stylesheet.
However, could there be a safe fallback for browsers
without CSS?
I.e., I just need two different element types, say "normal"
and "invisible", so that without customizations in CSS,
"normal" elements are visible and "invisible" are not:
PS: I do not want to go through the hassle to prepare two
different documents when they differ only by a few words.
One could write:
... my course, Which holds not
<span class="American">color</span>
<span class="British">colour</span>
with the time ...
and offer two different style sheets "American" and
"British". Then people could choose the language to
be used for the display in their browsers where they
choose a stylesheet.
However, could there be a safe fallback for browsers
without CSS?
PS: I do not want to go through the hassle to prepare twoThere are several differences between British and American English. They
different documents when they differ only by a few words.
Choosing a language or a style sheet is not simple in browsers. You
would need to have your own tool for that on the page, e.g. a button or
a dropdown menu.
You could then have just general code that replaces strings,
e.g. “color” by “colour”, according to a simple mapping
table, in the entire document, without no extra markup.
But you can have data in attributes and make it displayed with CSS, as >suggested in answers hide.
"Jukka K. Korpela" <jukkakk@gmail.com> writes:
Choosing a language or a style sheet is not simple in browsers. You
would need to have your own tool for that on the page, e.g. a button or
a dropdown menu.
For the same reason, every page needs a "print" button?
I found the choice between "No Style" and "Default Style"/"Basic
Page Style" in both IE and Firefox in in the "Style"/"Page Style"
sub menu of the "View" menu.
You could then have just general code that replaces strings,
e.g. “color” by “colour”, according to a simple mapping
table, in the entire document, without no extra markup.
This also would replace "color" by "colour" when it is
to be quoted as a literal string, e.g., on a page about
differences between American English and British English.
So I think, it's safer for use manual markup for this.
"Jukka K. Korpela" <jukkakk@gmail.com> writes:
Choosing a language or a style sheet is not simple in browsers. You
would need to have your own tool for that on the page, e.g. a button or
a dropdown menu.
For the same reason, every page needs a "print" button?
I found the choice between "No Style" and "Default Style"/"Basic
Page Style" in both IE and Firefox in in the "Style"/"Page Style"
sub menu of the "View" menu.
Printing in a browswer is quite simple - just press Ctrl+P or use the
menu command "Print".
But there is no similar command to switch between languages. And which standard defines, what languages a website supports, so that a browser
could offer the selection to the user?
The real relevant browser are Chrome or Safari - and both do *not*
provide a simple menu command to disable stylesheets.
Digression: It?s a bit different with ?To the top? issue. I have partly changed my mind on this and even implemented a ?Top of page? button on
some pages of mine, after realizing that none of the browsers I have
used on my phones has a simple way to get to the start.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 379 |
Nodes: | 16 (2 / 14) |
Uptime: | 41:02:42 |
Calls: | 8,141 |
Calls today: | 4 |
Files: | 13,085 |
Messages: | 5,857,726 |