Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #19515 > unrolled thread
| Started by | "Tony" <tony.johansson@inport.com> |
|---|---|
| First post | 2013-04-28 12:11 +0200 |
| Last post | 2013-04-28 17:16 +0200 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.lang.javascript
a simple question abou css "Tony" <tony.johansson@inport.com> - 2013-04-28 12:11 +0200
Re: a simple question abou css "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2013-04-28 14:10 +0300
Re: a simple question abou css "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-04-28 17:16 +0200
| From | "Tony" <tony.johansson@inport.com> |
|---|---|
| Date | 2013-04-28 12:11 +0200 |
| Subject | a simple question abou css |
| Message-ID | <klisdj$gc6$1@dont-email.me> |
I know this is not the correct forum for this question but I assume that you
know the answer in spite of that.
The reason I ask is because I just want to get a confirm that I have right
and the book is wrong about the order or rules in the style sheet.
The book says "The order in which rules appear within the style sheet,
however, does not matter"
The order of rules in the example from the book is correct and it works as
expected.
The h3 override font-weight to normal.
But if I move this rule
h3
{
font-weight:normal;
}
before this rule
h1,h2,h3
{
color:#000000;
background-color:#FFFFFF;
font-family:Arial, verdena, sans-sarif;
font-weight:bold;
}
it doesn't work as expected and that proves that the book must be wrong with
the text or that the book means something different.
//This is the correct order of rules and the way the example is presented in
the book.
<style>
h1,h2,h3
{
color:#000000;
background-color:#FFFFFF;
font-family:Arial, verdena, sans-sarif;
font-weight:bold;
}
h3
{
font-weight:normal;
}
</style>
//Tony
[toc] | [next] | [standalone]
| From | "Jukka K. Korpela" <jkorpela@cs.tut.fi> |
|---|---|
| Date | 2013-04-28 14:10 +0300 |
| Message-ID | <klivt3$vqr$1@dont-email.me> |
| In reply to | #19515 |
2013-04-28 13:11, Tony wrote: > I know this is not the correct forum for this question Then don't post it here. There's group for CSS questions: comp.infosystems.www.authoring.stylesheets When posting your question, try to write a heading that looks less foolish and tells what the question is about. CSS is the implied context in the right group, and need not be mentioned. Also avoid words like "simple" and "question". And please cite properly the book you are asking about, at least the name of the book and the specific place where you found the statement. The odds are that the book is just bad, and you would help others to avoid it. But you may have misread, or you may have failed to note a constraint in the statement from which you quoted a part. -- Yucca, http://www.cs.tut.fi/~jkorpela/
[toc] | [prev] | [next] | [standalone]
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
|---|---|
| Date | 2013-04-28 17:16 +0200 |
| Message-ID | <XnsA1B0AFA7BEBCEeejj99@194.109.133.133> |
| In reply to | #19515 |
Tony wrote on 28 apr 2013 in comp.lang.javascript:
> h1,h2,h3
> {
> color:#000000;
> background-color:#FFFFFF;
> font-family:Arial, verdena, sans-sarif;
> font-weight:bold;
>}
> it doesn't work as expected.
Indeed, if I might be so bold.
if arial is not available [quod non?]
and if you expect "verdena" to show "verdana",
then you are wrong in your expectation,
because "sans-sarif" is not "sans-serif".
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.javascript
csiph-web