Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#231 Incorrect priorities in CSS styles

Android
open-duplicate
nobody
Formatting (59)
5
2012-10-16
2012-10-16
Jan Czarnecki
No

In CSS stylesheets, if two styles contradict each other, the one that comes last takes precedence. For instance, take the following style:

* {font-size: 1em}
h1 {font-size: 2em}

This style should cause all text to be 1em with the exception of h1 text which will be 2em. However, on Android, the first style will take precedence and all text, including h1, will have size 1em.

Discussion

  • Jan Czarnecki
    Jan Czarnecki
    2012-10-16

    • status: open --> open-duplicate