Sideway
output.to from Sideway
Draft for Information Only

Content

CSS Property
 CSS Property Definitions
  'property-name'
  <value>
  Initial
  Applies to
  Inherited
  Percentages
  Media
  Computed value
 Shorthand Property
 Type of Property Values
 Syntax of Property Value
  Property Value Separator
  Property Value Modifier

CSS Property

A CSS property is a parameter used in cascading style sheet to influence the CSS engine. The CSS specification defines a list of properties with a set of key information for rendering the source document.

CSS Property Definitions

In general, a CSS property can be summarized with a set of key information in form of CSS property definitions. That is

'property-name' <value>:legal values & syntaxcss1 Initial:initial valuecss1 Applies to:elements this property applies tocss1 Inherited:whether the propety is inheritedcss1 Percentages:how percentage values are interpretedcss1 Media:which media groups the property applies tocss1,2.1 Computed value:how to compute the computed valuecss1,2.1

'property-name'

'property-name' specifies the name of propery

<value>

<value> specifies the set of valid values for the property, 'property-name',

Initial

Initial specifies the initial value of the property , 'property-name',

Applies to

Applies to specifies the lists of the elements to which the propety , 'property-name', applies

Inherited

Inherited indicates whether the value of the property, 'property-name', is inherited from an ancestor element.

Percentages

Percentages indicates how percentages should be interpreted, if percentage value occur in the value of the property, 'property-name'.

Media

Media indicates the media groups to which the property, 'property-name', applies.

Computed value

Computed value describes the computed value for the property, 'property-name'.

Shorthand Property

Shorthand property is not a specific CSS parameter, but a shorthand for a set of CSS properties. Some properties are shorthand properties designed for specifying the values of several properties with a single property

Type of Property Values

Three types of property values are used in CSS specification, that is numeric unit value, keyword value, and data type value.

  • numeric value: a specific numeric value. For examples, 100, etc.
  • keyword value: a word with value of specific meaning in CSS specification, For examples, auto, disc, inherit, etc.
  • data type value: a value, numeric unit or keyword value, selected from a set of specific values. For examples,
    • <integer>: a value selected from the set of integer values.
    • <numebr>: a value selected from the set of real number values.
    • <length>: a value of format with a numeric value immediately followed by a unit identifier.
    •  <percentage>: a value of format with a numeric value immediately followed by '%'.
    • <border-style>: a value from the set of pre-defined border-style values.
    • <'list-style-type'>: a value from the set of possible values of the 'list-style-type' property

Syntax of Property Value

Property Value Separator

The arrangement of component values of property values are:

Several juxtaposed wordsall values must occur in the given order. A bar (|) separatorseparates two or more alternative values however exactly only one alternative value must occur. A double bar (||) separatorseparates two or more option values and one or more options must occur but can be in any order. A double ampersand (&&) separatorseparates two or more value component values and all of component must occur but can be in any order. Bracket ([ ]) pair groups values, value options, or value components together as one component value.

Juxtaposition is stronger than the double ampersand, the double ampersand is stronger than the double bar, and the double bar is stronger than the bar. While bracketed values is considered as one component group.

Property Value Modifier

Every value, type, keyword, or bracketed group, may be followed by a modifier:

An asterisk (*)the preceding value occurs zero or more times. A plus (+)the preceding value occurs one or more times A question mark (?)the preceding value is optionl A pair of numbers in curly braces ({A,B})the preceding value occurs at least A and at most B times.

©sideway

ID: 190400004 Last Updated: 4/4/2019 Revision: 0 Ref:

close

References

  1. http://www.w3.org/TR/1999/REC-html401-1999, 1999, HTML 4.01 Specification: W3C Recommendation, updated 24 December 1999
close

Latest Updated LinksValid XHTML 1.0 Transitional Valid CSS!Nu Html Checker Firefox53 Chromena IExplorerna
IMAGE

Home 5

Business

Management

HBR 3

Information

Recreation

Hobbies 8

Culture

Chinese 1097

English 339

Reference 79

Computer

Hardware 249

Software

Application 213

Digitization 32

Latex 52

Manim 205

KB 1

Numeric 19

Programming

Web 289

Unicode 504

HTML 66

CSS 65

SVG 46

ASP.NET 270

OS 429

DeskTop 7

Python 72

Knowledge

Mathematics

Formulas 8

Algebra 84

Number Theory 206

Trigonometry 31

Geometry 34

Coordinate Geometry 2

Calculus 67

Complex Analysis 21

Engineering

Tables 8

Mechanical

Mechanics 1

Rigid Bodies

Statics 92

Dynamics 37

Fluid 5

Fluid Kinematics 5

Control

Process Control 1

Acoustics 19

FiniteElement 2

Natural Sciences

Matter 1

Electric 27

Biology 1

Geography 1


Copyright © 2000-2024 Sideway . All rights reserved Disclaimers last modified on 06 September 2019