What is shorthand property?


Shorthand property is a property made up of individual properties that have a common “addressee”. For example properties: font-weight, font-style, font-variant, font-size, font-family, refer to the font. To reduce the size of style sheets and also save some keystrokes as well as bandwidth they can all be specified as one shorthand property font, e.g.:

H1Â Â Â Â {font-weight: bold;
font-style: italic;
font-variant: small-caps;
font-size: 160%;
font-family: serif}

can be all shorthanded to a space separated list:

H1 {font: bold italic small-caps 160% serif}

Note: To make things even simpler the line-height property can be specified together with the font-size property:

H1 {font: bold italic small-caps 160%/170% serif}



Explore posts in the same categories: CSS Interview Questions


BOOKMARK THIS : del.icio.us | Digg it | Furl | reddit |


Related Questions :

  • Is it possible to have different access modifiers on the get/set methods of a property?
  • No. The access modifier on a property applies to both its get and set accessors. What you need to do...
  • What is value?
  • Value is a 'physical' characteristic of the property. Property declares what should be formatted, e.g. FONTÂ while value suggests...
  • What are property classes ? Can property classes have trigger?
  • Property class inheritance is a powerful feature that allows you to quickly define objects that conform to your own interface...
  • What is property?
  • Property is a stylistic parameter (attribute) that can be influenced through CSS, e.g. FONT or WIDTH. There must always be...
  • What is the difference between a Property Let and Property Set procedure?
  • Let - for simple variable Set - for object...
  • What is initial value?
  • Initial value is a default value of the property, that is the value given to the root element of the...
  • What is validationsummary server control?where it is used?.
  • The ValidationSummary control allows you to summarize the error messages from all validation controls on a Web page in a...
  • Diff. between VAT and Property Class?
  • Named visual attributes define only font, color, and pattern attributes; property classes can contain these and any other properties.You can...
  • Which property on a Combo Box do you set with a column name, prior to setting the DataSource, to display data in the combo box ?
  • DataTextField property...
  • DIFF between Image and Picture box controls?
  • The sizing behavior of the image control differs from that of the picture box. It has a Stretch property while...

    Comment:

    You must be logged in to post a comment.