Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

WORKING CSS help, please

1 view
Skip to first unread message

Robert Baer

unread,
Apr 27, 2019, 6:43:20 PM4/27/19
to
I need a "legal" (passes W3C validator) inline CSS script that
actually WORKS in an online HTML program.
If you look at the styles below, be advised that the code works as
shown on their site, but cannot work in real life AND fails their validator.

Ideas? suggestions? help?
Thanks.


<!-- See https://www.w3schools.com/CSS/ first "example" and
note they program the h1 attribute
and that works on their site -->

<!-- in reality, EVERYTHING is ignored in h1 -->
<!-- NO "h1,..h6" attribute changes seem to work -->
<!-- in ALL cases the W3C validator rejects ANY attempts
to alter "h1,..h6" attributes -->
<style>
h1 { color:red;
text-align:center; !important;
font-family:arial;
font-size:50px;
}
h5 { text-align:center; font-family:arial; font-size:30px;
}
h2 { color:red; font face:"arial"; font-size:25px;
}
h3 { font face:"courier"; font-size:14px;
}
</style>

</head>

<body>

<!-- character look-up table needed BUT degree symbol and space cannot
be used or found -->

<h1><B>Subject Index<br></B></h1>
<h5>
<a href="subject-index.html?find=0-9:">0-9</a>
<a href="subject-index.html?find=A:">A</a>
<a href="subject-index.html?find=B:">B</a>
<a href="subject-index.html?find=C:">C</a>
<a href="subject-index.html?find=D:">D</a>
.
.
<a href="subject-index.html?find=Y:">Y</a>
<a href="subject-index.html?find=Z:">Z</a>
</h5>
<!-- a sample from working list -->
<h2><B>C:</B></h2>
&nbsp; &nbsp;
&nbsp; &nbsp;code
&nbsp; &nbsp;<a href="services.html?find=code">Services</a>
<br>

Martin Leese

unread,
Apr 27, 2019, 10:43:52 PM4/27/19
to
Robert Baer wrote:
> I need a "legal" (passes W3C validator) inline CSS script that
> actually WORKS in an online HTML program.
> If you look at the styles below, be advised that the code works as
> shown on their site, but cannot work in real life AND fails their
> validator.
>
> Ideas? suggestions? help?

Your code works in my browser (Opera 10.10).
Not really sure what you are asking for.
Both the HTML and CSS contain errors, so
push them through validators and fix the
errors described. I use:
http://validator.w3.org/
http://jigsaw.w3.org/css-validator/

In the CSS the errors include:
1. incorrect use of "!important;"
2. "arial" without the quotes
3. "font face" instead of "font-family"

--
Regards,
Martin Leese
E-mail: ple...@see.Web.for.e-mail.INVALID
Web: http://members.tripod.com/martin_leese/

Robert Baer

unread,
Apr 29, 2019, 2:01:36 AM4/29/19
to
Martin Leese wrote:
> Robert Baer wrote:
>>   I need a "legal" (passes W3C validator) inline CSS script that
>> actually WORKS in an online HTML program.
>>   If you look at the styles below, be advised that the code works as
>> shown on their site, but cannot work in real life AND fails their
>> validator.
>>
>>   Ideas? suggestions? help?
>
> Your code works in my browser (Opera 10.10).
> Not really sure what you are asking for.
> Both the HTML and CSS contain errors, so
> push them through validators and fix the
> errors described.  I use:
>     http://validator.w3.org/
>     http://jigsaw.w3.org/css-validator/
>
> In the CSS the errors include:
> 1.  incorrect use of "!important;"
> 2.  "arial" without the quotes
> 3.  "font face" instead of "font-family"
>
Got it to work and pass both validators.
Thanks!
It was rough because i do not understand any of this flim-flam

Thanks again.

Andrew Poulos

unread,
May 4, 2019, 1:17:21 AM5/4/19
to
On 29/04/2019 5:01 pm, Robert Baer wrote:

>   It was rough because i do not understand any of this flim-flam

It's "flimflam" ;-)

Andrew Poulos

Evertjan.

unread,
May 4, 2019, 7:01:51 AM5/4/19
to
Andrew Poulos <ap_...@hotmail.com> wrote on 04 May 2019 in
comp.infosystems.www.authoring.stylesheets:

> On 29/04/2019 5:01 pm, Robert Baer wrote:
>
>>   It was rough because i do not understand any of this flim-flam
>
> It's "flimflam" ;-)
>
> Andrew Poulos

It is both:

flim-flam

Alternative forms:

flimflam

Etymology:

1538 as noun, 1660 as verb. By reduplication. Perhaps from a dialectal word
or Scandinavian; compare Old Norse flim (“lampoon, mockery”).

Derived forms: flim-flams, flim-flamming, flim-flammed, flimflams

<https://en.wiktionary.org/wiki/flim-flam>

<https://www.etymonline.com/word/flim-flam>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

Philip Herlihy

unread,
May 4, 2019, 8:36:12 AM5/4/19
to
In article <XnsAA458473...@194.109.6.166>,
exxjxw.h...@inter.nl.net says...
>
> Andrew Poulos <ap_...@hotmail.com> wrote on 04 May 2019 in
> comp.infosystems.www.authoring.stylesheets:
>
> > On 29/04/2019 5:01 pm, Robert Baer wrote:
> >
> >>   It was rough because i do not understand any of this flim-flam
> >
> > It's "flimflam" ;-)
> >
> > Andrew Poulos
>
> It is both:
>
> flim-flam
>
> Alternative forms:
>
> flimflam
>
> Etymology:
>
> 1538 as noun, 1660 as verb. By reduplication. Perhaps from a dialectal word
> or Scandinavian; compare Old Norse flim (?lampoon, mockery?).
>
> Derived forms: flim-flams, flim-flamming, flim-flammed, flimflams
>
> <https://en.wiktionary.org/wiki/flim-flam>
>
> <https://www.etymonline.com/word/flim-flam>

.flim-flam, .flamflam {display: none}

--

Phil, London
0 new messages