I have been looking at the weatherstyle.css file that CumulusMX uses and see something that I don't understand . . .
Based on the file timestamp, the .css file has probably not been updated from some time and since it works, there's probably no apetite to revisit it, but it would be nice to clean it up - if only to help newbies (like me) trying to understand the script. Anyway, here's my question . . .
For example, I suppose the h2 style section sets the style for anything using heading 2?
The weatherstyle.css file has sections related to h2
Code: Select all
h2 {
font-size: 125%;
font-weight: bold;
color: #6F9DBE;
letter-spacing: 0.4em;
text-transform: lowercase;
font-family: Arial, Helvetica, sans-serif;
text-align: left;
}
Code: Select all
h2 {
font-family: Geneva, Arial, Helvetica, sans-serif;
font-size: 90%;
color: #555555;
letter-spacing: 0.15em;
padding-bottom: .2em;
background-color: #c0cad3;
text-align: right;
padding-top: .2em;
padding-right: 1em;
}
I'm guessing that, if multiple entries exist, then the last entry wins (?), but is the current layout just an accident, or is it really by design. It may be that, as the style developed, the author (or later editors) wanted to add to the style, but should changes have been done to the existing section, rather than adding a new one?
Where an element is different, e.g., "font-size" and "text-align", will the later entry not always "win", so the earlier entry could/should be deleted ?
I'm not criticising here, I just want to understand why the .css is formatted as it is ? Maybe the .css was created/edited by some software package, rather than manually editing and the package just wasn't clever enough to replace, rather than add, duplicate entries in the file?
Or is it that h2, for example, can be differnt in different regions of the file to apply to different regions of the web page that uses it?
regards
Dave