Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. CSS
  3. Reference
  4. Properties

CSS properties

ACSSproperty is a parameter used in aCSS declaration that lets you style certain aspects of selected elements.For example, theopacity property is used to set the opacity of a selected element, allowing you to control if content behind that element is visible:

css
/* Set 0.8 opacity on <img> elements */img {  opacity: 0.8;}

Each property has a name (e.g.,opacity), a value (e.g.,0.8), and a defined behavior on the rendering of the document.CSS also defines shorthand properties, so you can specify multiple related properties in a single declaration.For example, themargin property is a shorthand formargin-top,margin-right,margin-bottom, andmargin-left, setting the margin of all four sides of an element:

css
/* Give <img> elements 1rem of margin */img {  margin: 1rem;}

Syntax

css
selector {  property: value;}

Alphabetical index of properties

Standard properties defined by CSS specifications include the following:

Misc

A

B

Border-*

B - C

D - F

G - I

J - M

O - P

Q - S

T - Z

Non-standard properties

Non-standard vendor-prefixed properties include:

-moz- prefix

-webkit- prefix

Specifications

Specification
CSS Syntax Module Level 3
CSS Snapshot 2024
CSS Cascading and Inheritance Level 6

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp