473,326 Members | 2,102 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Improvement of attribute "style"

How much are you interested that the attribute "style" will offer the
same or similar capabilities like they are provided by the element
"style" in the element "head"?

Do you want that the document "Syntax of CSS rules in HTML's "style"
attribute" (http://www.w3.org/TR/css-style-attr) will become an
official recommendation in the near future?

Best regards,
Markus Elfring
Jul 20 '05 #1
52 4091
On Thu, 15 Apr 2004, Markus Elfring wrote:
How much are you interested that the attribute "style" will offer the
same or similar capabilities like they are provided by the element
"style" in the element "head"?


Not much. Ideally there should be no attribute "style" in HTML. It
tempts authors to just repeat the nonsenses of HTML/3.2, just in a
more-verbose language.

Jul 20 '05 #2
Ma************@web.de (Markus Elfring) wrote:
How much are you interested that the attribute "style" will offer the
same or similar capabilities like they are provided by the element
"style" in the element "head"?
Not much. In the interests of clean code I try to use external styles
wherever possible. Use of the style attribute should, IMO, be rare.
Do you want that the document "Syntax of CSS rules in HTML's "style"
attribute" (http://www.w3.org/TR/css-style-attr) will become an
official recommendation in the near future?


I can see some problems with backwards compatability.
To take their second example:
<p style="{color: #090; line-height: 1.2}
::first-letter {color: #900}">...</p>
One would hope that a CSS1 or CSS2 compliant browser would apply the
color and line-height properties and ignore the CSS3 ::first-letter
syntax. However the syntax proposed here with the inclusion of {}
means that older (in other words current) browsers ignore all the
styles. Not ideal.

That document is nearly two years old, has any further work been done
on this? Or are you just trying to raise the dead?

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/>
Jul 20 '05 #3
On Thu, 15 Apr 2004, Markus Elfring wrote:
How much are you interested that the attribute "style" will offer the
same or similar capabilities like they are provided by the element
"style" in the element "head"?


Not much. Ideally there should be no attribute "style" in HTML. It
tempts authors to just repeat the nonsenses of HTML/3.2, just in a
more-verbose language.

Jul 20 '05 #4
Markus Elfring wrote:
How much are you interested that the attribute "style" will offer the
same or similar capabilities like they are provided by the element
"style" in the element "head"?

Do you want that the document "Syntax of CSS rules in HTML's "style"
attribute" (http://www.w3.org/TR/css-style-attr) will become an
official recommendation in the near future?

Best regards,
Markus Elfring


Not at all. I prefer to put style in a separate file and link to it,
the only exception being when I'm providing a single-file example to
someone, in which case I put all of the style info inside the <head>.

Chris Beall

Jul 20 '05 #5
Markus Elfring wrote:
How much are you interested that the attribute "style" will offer the
same or similar capabilities like they are provided by the element
"style" in the element "head"?

Do you want that the document "Syntax of CSS rules in HTML's "style"
attribute" (http://www.w3.org/TR/css-style-attr) will become an
official recommendation in the near future?

Best regards,
Markus Elfring


Not at all. I prefer to put style in a separate file and link to it,
the only exception being when I'm providing a single-file example to
someone, in which case I put all of the style info inside the <head>.

Chris Beall

Jul 20 '05 #6
"Markus Elfring" <Ma************@web.de> wrote in
comp.infosystems.www.authoring.stylesheets:
How much are you interested that the attribute "style" will offer the
same or similar capabilities like they are provided by the element
"style" in the element "head"?


I'm not at all interested in such an extension.

I use the style="..." attribute now, when I'm too lazy to update my
style sheet. I nearly always regret it as I end up having the same
style attribute repeated multiple times in the document (or multiple
documents). Then I have more work to update the style sheet and
change all the documents to what they should have been in the first
place.

Why create additional capabilities that solve no real problem and
will only encourage misuse?

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #7
"Markus Elfring" <Ma************@web.de> wrote in
comp.infosystems.www.authoring.stylesheets:
How much are you interested that the attribute "style" will offer the
same or similar capabilities like they are provided by the element
"style" in the element "head"?


I'm not at all interested in such an extension.

I use the style="..." attribute now, when I'm too lazy to update my
style sheet. I nearly always regret it as I end up having the same
style attribute repeated multiple times in the document (or multiple
documents). Then I have more work to update the style sheet and
change all the documents to what they should have been in the first
place.

Why create additional capabilities that solve no real problem and
will only encourage misuse?

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #8
> ... I nearly always regret it as I end up having the same
style attribute repeated multiple times in the document (or multiple
documents). Then I have more work to update the style sheet and
change all the documents to what they should have been in the first
place.
Would you like to try the forth use case "Importing a style sheet to
apply as a scoped style sheet"?
http://www.w3.org/TR/css-style-attr#examples

Why create additional capabilities that solve no real problem and
will only encourage misuse?


What do think is the "head" part for a portal component?
http://en.wikipedia.org/wiki/Portlet

Where can the specific formatting be placed for it?

Kind regards,
Markus Elfring
Jul 20 '05 #9
> ... I nearly always regret it as I end up having the same
style attribute repeated multiple times in the document (or multiple
documents). Then I have more work to update the style sheet and
change all the documents to what they should have been in the first
place.
Would you like to try the forth use case "Importing a style sheet to
apply as a scoped style sheet"?
http://www.w3.org/TR/css-style-attr#examples

Why create additional capabilities that solve no real problem and
will only encourage misuse?


What do think is the "head" part for a portal component?
http://en.wikipedia.org/wiki/Portlet

Where can the specific formatting be placed for it?

Kind regards,
Markus Elfring
Jul 20 '05 #10
Markus Elfring wrote:
What do think is the "head" part for a portal component?
http://en.wikipedia.org/wiki/Portlet

Where can the specific formatting be placed for it?


You apply a class to the included HTML and then use a descendent selector in
the external CSS.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Jul 20 '05 #11
Markus Elfring wrote:
What do think is the "head" part for a portal component?
http://en.wikipedia.org/wiki/Portlet

Where can the specific formatting be placed for it?


You apply a class to the included HTML and then use a descendent selector in
the external CSS.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Jul 20 '05 #12
> You apply a class to the included HTML and then use a descendent selector in
the external CSS.


What should happen if a portlet would like to style itself independent
from central style specifications in the HTML head?
It might include or import a private style sheet for that purpose.
Jul 20 '05 #13
> You apply a class to the included HTML and then use a descendent selector in
the external CSS.


What should happen if a portlet would like to style itself independent
from central style specifications in the HTML head?
It might include or import a private style sheet for that purpose.
Jul 20 '05 #14
Markus Elfring wrote:
You apply a class to the included HTML and then use a descendent selector
in the external CSS.


What should happen if a portlet would like to style itself independent
from central style specifications in the HTML head?


Then it should remember that its part of a larger page.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Jul 20 '05 #15
Markus Elfring wrote:
You apply a class to the included HTML and then use a descendent selector
in the external CSS.


What should happen if a portlet would like to style itself independent
from central style specifications in the HTML head?


Then it should remember that its part of a larger page.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Jul 20 '05 #16
David Dorward wrote:
Markus Elfring wrote:
You apply a class to the included HTML and then use a descendent
selector in the external CSS.


What should happen if a portlet would like to style itself
independent from central style specifications in the HTML head?


Then it should remember that its part of a larger page.


While I agree with the proponents of avoiding the "style" attribute, Markus
makes 0one good point with portlets here.

The idea of portlets is distribution of same content to various
environments, and the controller of a portlet's appearance is its provider,
not the user. For example, if a weather service offers a free portlet with
forecast for a town, they might want it to have a predefined look.

However, I am still against using a bunch of "style" attributes in a
portlet. Maybe some kind of specifying an external CSS file just for that
portion, or simply to use iframe or even Flash.

Berislav

--
If the Internet is a Marx Brothers movie, and Web, e-mail, and IRC are
Groucho, Chico, and Harpo, then Usenet is Zeppo.
Jul 20 '05 #17
David Dorward wrote:
Markus Elfring wrote:
You apply a class to the included HTML and then use a descendent
selector in the external CSS.


What should happen if a portlet would like to style itself
independent from central style specifications in the HTML head?


Then it should remember that its part of a larger page.


While I agree with the proponents of avoiding the "style" attribute, Markus
makes 0one good point with portlets here.

The idea of portlets is distribution of same content to various
environments, and the controller of a portlet's appearance is its provider,
not the user. For example, if a weather service offers a free portlet with
forecast for a town, they might want it to have a predefined look.

However, I am still against using a bunch of "style" attributes in a
portlet. Maybe some kind of specifying an external CSS file just for that
portion, or simply to use iframe or even Flash.

Berislav

--
If the Internet is a Marx Brothers movie, and Web, e-mail, and IRC are
Groucho, Chico, and Harpo, then Usenet is Zeppo.
Jul 20 '05 #18
> Then it should remember that its part of a larger page.

A portlet has got a reference to its context to access global
informations. But I want that it should keep specific syles in its own
section.
A portlet may need its own CSS rules.
Jul 20 '05 #19
> Then it should remember that its part of a larger page.

A portlet has got a reference to its context to access global
informations. But I want that it should keep specific syles in its own
section.
A portlet may need its own CSS rules.
Jul 20 '05 #20
"Berislav Lopac" <be************@dimedia.hr> wrote:
While I agree with the proponents of avoiding the "style" attribute, Markus
makes 0one good point with portlets here.
I've been reading this thread the last few days and wondering WTF a "portlet" is?

The idea of portlets is distribution of same content to various
environments, and the controller of a portlet's appearance is its provider,
not the user.
Ah, so it's just a euphemism for advertisement. Who would have guessed?

For example, if a weather service offers a free portlet with
forecast for a town, they might want it to have a predefined look.
Why? Oh yeah, because it ain't "free", it's advertising.

However, I am still against using a bunch of "style" attributes in a
portlet. Maybe some kind of specifying an external CSS file just for that
portion, or simply to use iframe or even Flash.


Good idea. Let them go to iframe oblivion where adverts belong.

--
iframe { display: none !important; /* Goodbye doubleclick */}
Jul 20 '05 #21
"Berislav Lopac" <be************@dimedia.hr> wrote:
While I agree with the proponents of avoiding the "style" attribute, Markus
makes 0one good point with portlets here.
I've been reading this thread the last few days and wondering WTF a "portlet" is?

The idea of portlets is distribution of same content to various
environments, and the controller of a portlet's appearance is its provider,
not the user.
Ah, so it's just a euphemism for advertisement. Who would have guessed?

For example, if a weather service offers a free portlet with
forecast for a town, they might want it to have a predefined look.
Why? Oh yeah, because it ain't "free", it's advertising.

However, I am still against using a bunch of "style" attributes in a
portlet. Maybe some kind of specifying an external CSS file just for that
portion, or simply to use iframe or even Flash.


Good idea. Let them go to iframe oblivion where adverts belong.

--
iframe { display: none !important; /* Goodbye doubleclick */}
Jul 20 '05 #22
> I've been reading this thread the last few days and wondering WTF a "portlet" is?

I suggest to read the article "http://en.wikipedia.org/wiki/Portlet".

Please consider also these standards.
- Web Services for Remote Portlets
http://oasis-open.org/committees/tc_...wg_abbrev=wsrp
http://webcollage.com/html/products/..._wsia_wsrp.pdf

- Web Services for Interactive Applications
http://oasis-open.org/committees/tc_...wg_abbrev=wsia
http://oasis-open.org/committees/wsi...os/index.shtml

Would you like to develop new web experiences with it?

Ah, so it's just a euphemism for advertisement. Who would have guessed?
Companies can publish advertisements with portlet technologies. But
this discussion is not about advertisement purpose.

Why? Oh yeah, because it ain't "free", it's advertising.
How do you think about to look at portlet catalogs for providers?
- https://www-306.ibm.com/services/cwi/portal/_pagr/105/
- http://portlet-opensrc.sourceforge.net/

Good idea. Let them go to iframe oblivion where adverts belong.


A portlet can be free to provide content with related style by all
techniques that are appropriate for its service.
Jul 20 '05 #23
> I've been reading this thread the last few days and wondering WTF a "portlet" is?

I suggest to read the article "http://en.wikipedia.org/wiki/Portlet".

Please consider also these standards.
- Web Services for Remote Portlets
http://oasis-open.org/committees/tc_...wg_abbrev=wsrp
http://webcollage.com/html/products/..._wsia_wsrp.pdf

- Web Services for Interactive Applications
http://oasis-open.org/committees/tc_...wg_abbrev=wsia
http://oasis-open.org/committees/wsi...os/index.shtml

Would you like to develop new web experiences with it?

Ah, so it's just a euphemism for advertisement. Who would have guessed?
Companies can publish advertisements with portlet technologies. But
this discussion is not about advertisement purpose.

Why? Oh yeah, because it ain't "free", it's advertising.
How do you think about to look at portlet catalogs for providers?
- https://www-306.ibm.com/services/cwi/portal/_pagr/105/
- http://portlet-opensrc.sourceforge.net/

Good idea. Let them go to iframe oblivion where adverts belong.


A portlet can be free to provide content with related style by all
techniques that are appropriate for its service.
Jul 20 '05 #24
Karl Smith wrote:
"Berislav Lopac" <be************@dimedia.hr> wrote:
The idea of portlets is distribution of same content to various
environments, and the controller of a portlet's appearance is its
provider, not the user.


Ah, so it's just a euphemism for advertisement. Who would have
guessed?

For example, if a weather service offers a free portlet with
forecast for a town, they might want it to have a predefined look.


Why? Oh yeah, because it ain't "free", it's advertising.


Portlets are not advertising. They are regular content.

Berislav

--
If the Internet is a Marx Brothers movie, and Web, e-mail, and IRC are
Groucho, Chico, and Harpo, then Usenet is Zeppo.
Jul 20 '05 #25
Karl Smith wrote:
"Berislav Lopac" <be************@dimedia.hr> wrote:
The idea of portlets is distribution of same content to various
environments, and the controller of a portlet's appearance is its
provider, not the user.


Ah, so it's just a euphemism for advertisement. Who would have
guessed?

For example, if a weather service offers a free portlet with
forecast for a town, they might want it to have a predefined look.


Why? Oh yeah, because it ain't "free", it's advertising.


Portlets are not advertising. They are regular content.

Berislav

--
If the Internet is a Marx Brothers movie, and Web, e-mail, and IRC are
Groucho, Chico, and Harpo, then Usenet is Zeppo.
Jul 20 '05 #26
Stan Brown wrote:
[snip]
I'm not at all interested in such an extension.

I use the style="..." attribute now, when I'm too lazy to update my
style sheet. I nearly always regret it as I end up having the same
style attribute repeated multiple times in the document (or multiple
documents). Then I have more work to update the style sheet and
change all the documents to what they should have been in the first
place.

[snip]

How would you, or others here, solve this problem?

I am writing a page based on a template that has a CSS. Lots of pages use that
CSS. This page needs some rules that are local to this page, because of the
special nature of its content, and I don't expect them to used elsewhere.

After some thought, I have given this page its own CSS, which then uses
@import for the standard CSS for this template. As far as I can tell, this
works OK, although I believe this will not work properly in NN4, and will hide
the standard CSS.

But I did contemplate using embedded or inline styles. (Probably the thing
that stopped me was that I never used them before, and I didn't want to start
now).

Views? (I'm not sure how like the "portlet" case this is).

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/
Jul 20 '05 #27
Stan Brown wrote:
[snip]
I'm not at all interested in such an extension.

I use the style="..." attribute now, when I'm too lazy to update my
style sheet. I nearly always regret it as I end up having the same
style attribute repeated multiple times in the document (or multiple
documents). Then I have more work to update the style sheet and
change all the documents to what they should have been in the first
place.

[snip]

How would you, or others here, solve this problem?

I am writing a page based on a template that has a CSS. Lots of pages use that
CSS. This page needs some rules that are local to this page, because of the
special nature of its content, and I don't expect them to used elsewhere.

After some thought, I have given this page its own CSS, which then uses
@import for the standard CSS for this template. As far as I can tell, this
works OK, although I believe this will not work properly in NN4, and will hide
the standard CSS.

But I did contemplate using embedded or inline styles. (Probably the thing
that stopped me was that I never used them before, and I didn't want to start
now).

Views? (I'm not sure how like the "portlet" case this is).

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/
Jul 20 '05 #28
Barry Pearson wrote:
[snip]
After some thought, I have given this page its own CSS, which then
uses @import for the standard CSS for this template. As far as I can
tell, this works OK, although I believe this will not work properly
in NN4, and will hide the standard CSS.

[snip]

ps: If simply linking to the 2 CSSs from the HTML works reliably, then that
would be a better option. It appears to be OK on the W2000 browsers I test
with.

But I haven't got a Mac, and I'm used to things I do failing with IE Mac then
only finding out later. And I also have no idea about how well it works in
other systems.

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/
Jul 20 '05 #29
Barry Pearson wrote:
[snip]
After some thought, I have given this page its own CSS, which then
uses @import for the standard CSS for this template. As far as I can
tell, this works OK, although I believe this will not work properly
in NN4, and will hide the standard CSS.

[snip]

ps: If simply linking to the 2 CSSs from the HTML works reliably, then that
would be a better option. It appears to be OK on the W2000 browsers I test
with.

But I haven't got a Mac, and I'm used to things I do failing with IE Mac then
only finding out later. And I also have no idea about how well it works in
other systems.

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/
Jul 20 '05 #30
> The idea of portlets is distribution of same content to various
environments, and the controller of a portlet's appearance is its provider,
not the user. For example, if a weather service offers a free portlet with
forecast for a town, they might want it to have a predefined look.
Are portlet providers interested to use complete CSS rules?
Are rules for merging the appearance guidelines with styles from a
portal needed?

However, I am still against using a bunch of "style" attributes in a
portlet. Maybe some kind of specifying an external CSS file just for that
portion, or simply to use iframe or even Flash.


There are problems with the support for inline frame windows.
http://www.cs.tut.fi/~jkorpela/html/iframe.html

If you want an external CSS file, I assume that you would like to see
further development and support of the discussed specification.
Jul 20 '05 #31
> The idea of portlets is distribution of same content to various
environments, and the controller of a portlet's appearance is its provider,
not the user. For example, if a weather service offers a free portlet with
forecast for a town, they might want it to have a predefined look.
Are portlet providers interested to use complete CSS rules?
Are rules for merging the appearance guidelines with styles from a
portal needed?

However, I am still against using a bunch of "style" attributes in a
portlet. Maybe some kind of specifying an external CSS file just for that
portion, or simply to use iframe or even Flash.


There are problems with the support for inline frame windows.
http://www.cs.tut.fi/~jkorpela/html/iframe.html

If you want an external CSS file, I assume that you would like to see
further development and support of the discussed specification.
Jul 20 '05 #32
*Berislav Lopac* <be************@dimedia.hr>:

Portlets are not advertising. They are regular content.


They're imported content advertising their provider.

--
I'm a signature virus, help me spread!
Jul 20 '05 #33
*Berislav Lopac* <be************@dimedia.hr>:

Portlets are not advertising. They are regular content.


They're imported content advertising their provider.

--
I'm a signature virus, help me spread!
Jul 20 '05 #34
> If simply linking to the 2 CSSs from the HTML works reliably, then that
would be a better option.


Where do you want to place your CSS code now?
Have you got the need to put some special formatting rules into the
style attribute somewhere in the body part?
Jul 20 '05 #35
> If simply linking to the 2 CSSs from the HTML works reliably, then that
would be a better option.


Where do you want to place your CSS code now?
Have you got the need to put some special formatting rules into the
style attribute somewhere in the body part?
Jul 20 '05 #36
Markus Elfring wrote:
If simply linking to the 2 CSSs from the HTML works reliably, then
that would be a better option.


Where do you want to place your CSS code now?
Have you got the need to put some special formatting rules into the
style attribute somewhere in the body part?


Up to now, every page I have has one link to a CSS file. And those CSSs
(obviously I have a number of them) are the only place where I have any
styles.

Now I am writing a page that needs a few extra rules, almost certainly
one-off, and I don't want them in the normal CSS for that page layout. I'm
confident that the @import approach will work in most cases, but I believe
fails in NN4. A more logical approach would be to link to 2 CSSs from that
page, and as far as I can tell it is OK in my test set of browsers on W2000,
but I can't test on other platforms.

Using a style attribute would be another option. I have avoided styles within
my HTML pages so far, and would prefer to keep things that way. So I am trying
to find the best cross-browser, least-unsatisfactory, way of adding a few
specialist styles for that page.

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/
Jul 20 '05 #37
Markus Elfring wrote:
If simply linking to the 2 CSSs from the HTML works reliably, then
that would be a better option.


Where do you want to place your CSS code now?
Have you got the need to put some special formatting rules into the
style attribute somewhere in the body part?


Up to now, every page I have has one link to a CSS file. And those CSSs
(obviously I have a number of them) are the only place where I have any
styles.

Now I am writing a page that needs a few extra rules, almost certainly
one-off, and I don't want them in the normal CSS for that page layout. I'm
confident that the @import approach will work in most cases, but I believe
fails in NN4. A more logical approach would be to link to 2 CSSs from that
page, and as far as I can tell it is OK in my test set of browsers on W2000,
but I can't test on other platforms.

Using a style attribute would be another option. I have avoided styles within
my HTML pages so far, and would prefer to keep things that way. So I am trying
to find the best cross-browser, least-unsatisfactory, way of adding a few
specialist styles for that page.

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/
Jul 20 '05 #38
Barry Pearson wrote:

I am writing a page based on a template that has a CSS. Lots of pages
use that CSS. This page needs some rules that are local to this page,
because of the special nature of its content, and I don't expect them
to used elsewhere.
<style type="text/css">
/* rules specific to this page here */
</style>

And link to the site-wide styles in the usual way.

Or,

<LINK REL="stylesheet" TYPE="text/css" HREF="site-wide.css"
MEDIA="screen">

<LINK REL="stylesheet" TYPE="text/css" HREF="this-page-only.css"
MEDIA="screen">

I have given this page its own CSS, which then uses @import for the
standard CSS for this template. As far as I can tell, this works OK,
although I believe this will not work properly in NN4, and will hide
the standard CSS.


Correct.

--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
Jul 20 '05 #39
Barry Pearson wrote:

I am writing a page based on a template that has a CSS. Lots of pages
use that CSS. This page needs some rules that are local to this page,
because of the special nature of its content, and I don't expect them
to used elsewhere.
<style type="text/css">
/* rules specific to this page here */
</style>

And link to the site-wide styles in the usual way.

Or,

<LINK REL="stylesheet" TYPE="text/css" HREF="site-wide.css"
MEDIA="screen">

<LINK REL="stylesheet" TYPE="text/css" HREF="this-page-only.css"
MEDIA="screen">

I have given this page its own CSS, which then uses @import for the
standard CSS for this template. As far as I can tell, this works OK,
although I believe this will not work properly in NN4, and will hide
the standard CSS.


Correct.

--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
Jul 20 '05 #40
Brian wrote:
Barry Pearson wrote: [snip] Or,

<LINK REL="stylesheet" TYPE="text/css" HREF="site-wide.css"
MEDIA="screen">

<LINK REL="stylesheet" TYPE="text/css" HREF="this-page-only.css"
MEDIA="screen">

[snip]

Thanks, that's what I'll go for. My worry was that would fail on some systems
I couldn't test on, but it appears OK. It is the logical approach for my
purpose. (I'm very wary of IE on Mac, because of bad experiences with the way
it handles some of my styles. It appears to defy logic at times,and since I
haven't got a Mac, I find out too late).

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/
Jul 20 '05 #41
Brian wrote:
Barry Pearson wrote: [snip] Or,

<LINK REL="stylesheet" TYPE="text/css" HREF="site-wide.css"
MEDIA="screen">

<LINK REL="stylesheet" TYPE="text/css" HREF="this-page-only.css"
MEDIA="screen">

[snip]

Thanks, that's what I'll go for. My worry was that would fail on some systems
I couldn't test on, but it appears OK. It is the logical approach for my
purpose. (I'm very wary of IE on Mac, because of bad experiences with the way
it handles some of my styles. It appears to defy logic at times,and since I
haven't got a Mac, I find out too late).

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/
Jul 20 '05 #42
Barry Pearson wrote:
Brian wrote:
<LINK REL="stylesheet" TYPE="text/css" HREF="site-wide.css"
MEDIA="screen">

<LINK REL="stylesheet" TYPE="text/css" HREF="this-page-only.css"
MEDIA="screen">
(I'm very wary of IE on Mac, because of bad experiences with the way
it handles some of my styles. It appears to defy logic at times,and
since I haven't got a Mac, I find out too late).


I think Mac is fussier with @import syntax than with LINK.

--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
Jul 20 '05 #43
Barry Pearson wrote:
Brian wrote:
<LINK REL="stylesheet" TYPE="text/css" HREF="site-wide.css"
MEDIA="screen">

<LINK REL="stylesheet" TYPE="text/css" HREF="this-page-only.css"
MEDIA="screen">
(I'm very wary of IE on Mac, because of bad experiences with the way
it handles some of my styles. It appears to defy logic at times,and
since I haven't got a Mac, I find out too late).


I think Mac is fussier with @import syntax than with LINK.

--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
Jul 20 '05 #44
Brian wrote:
Barry Pearson wrote:
Brian wrote:
<LINK REL="stylesheet" TYPE="text/css" HREF="site-wide.css"
MEDIA="screen">

<LINK REL="stylesheet" TYPE="text/css" HREF="this-page-only.css"
MEDIA="screen">

(I'm very wary of IE on Mac, because of bad experiences with the way
it handles some of my styles. It appears to defy logic at times,and
since I haven't got a Mac, I find out too late).


I think Mac is fussier with @import syntax than with LINK.


Thanks.

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/
Jul 20 '05 #45
Brian wrote:
Barry Pearson wrote:
Brian wrote:
<LINK REL="stylesheet" TYPE="text/css" HREF="site-wide.css"
MEDIA="screen">

<LINK REL="stylesheet" TYPE="text/css" HREF="this-page-only.css"
MEDIA="screen">

(I'm very wary of IE on Mac, because of bad experiences with the way
it handles some of my styles. It appears to defy logic at times,and
since I haven't got a Mac, I find out too late).


I think Mac is fussier with @import syntax than with LINK.


Thanks.

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/
Jul 20 '05 #46
> That document is nearly two years old, has any further work been done
on this?
Would a W3C member (perhaps the editors of this draft) like to answer this question?

Or are you just trying to raise the dead?


I hope not.
Jul 20 '05 #47
> That document is nearly two years old, has any further work been done
on this?
Would a W3C member (perhaps the editors of this draft) like to answer this question?

Or are you just trying to raise the dead?


I hope not.
Jul 20 '05 #48
Markus Elfring wrote:
Would a W3C member (perhaps the editors of this draft) like to answer
this question?


What makes you think they particpate in this group? I don't recall ever
reading a comment from someone who said (admitted?)[1] that they are
part of the w3c.

[1] SCNR

--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
Jul 20 '05 #49
Markus Elfring wrote:
Would a W3C member (perhaps the editors of this draft) like to answer
this question?


What makes you think they particpate in this group? I don't recall ever
reading a comment from someone who said (admitted?)[1] that they are
part of the w3c.

[1] SCNR

--
Brian (remove "invalid" from my address to email me)
http://www.tsmchughs.com/
Jul 20 '05 #50

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Markus Elfring | last post by:
How much are you interested that the attribute "style" will offer the same or similar capabilities like they are provided by the element "style" in the element "head"? Do you want that the...
4
by: mike | last post by:
regards: <a href="JavaScript:loadwindow(106,90);" style="font-family:Verdana;">元智Intranet</a> In HTML spec,are "href" and "style" called "attribute"?....@@ Could someone good give me the...
5
by: johnsuth | last post by:
I want to produce a trivial demonstration of dynamic modification. I thought that pressing a button might change its color. I studied O'Reillys books and successfully created the button with a...
0
by: =?Utf-8?B?QXR1bA==?= | last post by:
When .Net 1.0 webservice (VS2003) generates a wsdl - <wsdl:binding name="TestSoap" type="tns:TestSoap"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/(note:...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.