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

#230 Incorrect priorities in CSS styles

Android
open
Vadim Lopatin
Formatting (59)
5
2013-12-29
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

  • Vadim Lopatin
    Vadim Lopatin
    2012-12-10

    • assigned_to: nobody --> buggins