MDN self-hosted library · e01.org
CSS properties / notebook

CSS properties

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

css
/* Set 0.8 opacity on <img> elements */
img {
  opacity: 0.8;
}
css
/* Give <img> elements 1rem of margin */
img {
  margin: 1rem;
}
css
selector {
  property: value;
}