• Resolved snaphappyme

    (@snaphappyme)


    The developer toolbar threw up a number of warnings for dm-style.min.css

    When I had a quick look at the style definitions within this file I saw many declarations are missing the closing semi-colon ;

    example:

    .dm-width {
        max-width: 100%;
        display: inline-block<no semi-colon>
    }

    This may or may not be of concern.

    But the error showing is “Invalid CSS property declaration at *”

    https://wordpress.org/plugins/device-mockups/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter snaphappyme

    (@snaphappyme)

    Looking through the CSS I can see three places where ‘*” star shortcut is used.

    * html .slides{} <-- ok to me
    
    .flex-direction-nav {*height:0;} <-- never seen it done like this but I am no expert
    
    .flex-control-nav li {*display:inline;} <-- never seen it done like this but I am no expert

    Anyone??

    It’s not a big deal but any error or warning is one you want to get rid of and investigate.

    Plugin Author Justin Peacock

    (@mrdink)

    Hey snaphappyme,

    Placing a * before a property in CSS is a browser hack for IE.

    http://browserhacks.com

    And for your first question, a semicolon isn’t needed after the last property statement in CSS.

    Thread Starter snaphappyme

    (@snaphappyme)

    Interesting. You learn something new everyday.

    I knew the * was an i.e. hack but never seen it used as a property prefix.

    So I will ignore the warnings. Thanks for answering query.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘dm-style.min.css throwing warnings’ is closed to new replies.