0

What is the Asterisk at the end of CSS property (font and font-family)?

/*
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.net/yui/license.txt
version: 2.8.0r4
*/
body{
    font:14px Minion New,times,clean,serif;*
    font-size:small;*
    font:x-small;
    }
pre,code,kbd,samp,tt{
        font-family:monospace;*
        font-size:108%;
        line-height:100%;
    }

Is it the same as the IE7 hack? But This asterisk is at the end.

Community
  • 1
  • 1
J.Joe
  • 644
  • 2
  • 7
  • 20
  • 2
    Possible duplicate of [What does a star-preceded property mean in CSS?](http://stackoverflow.com/questions/1667531/what-does-a-star-preceded-property-mean-in-css) – Serlite Nov 07 '16 at 22:37
  • I know that IE hack. But this asterisk is at the END, while the one you mentioned is at the beginning. – J.Joe Nov 07 '16 at 22:38
  • 3
    You can see it if you eliminate the whitespace between rules - because whitespace in CSS has no effect on how it's read by the browser, an asterisk at the end of a line can be considered at the start of the subsequent line. – Serlite Nov 07 '16 at 22:44

1 Answers1

0

This is a css hack, used for IE8 the properties with the asterisk in front only affect in the navigator IE8.

In the end or in the begining is the same for css.

Dante
  • 295
  • 2
  • 12