page-break

There isn’t an actual page-break property in CSS. It is actually a set of 3 properties: page-break-before, page-break-after and page-break-inside. These properties help define how the document is supposed to behave when printed. For example, to make a …

Avatar of Sara Cope
Sara Cope on (Updated on )

padding

The padding property in CSS defines the innermost portion of the box model, creating space around an element’s content, inside of any defined margins and/or borders.

Padding values are set using lengths or percentages, and cannot accept negative values. …

Avatar of Sara Cope
Sara Cope on (Updated on )

orphans

In typography terms, an orphan is the first line of a paragraph that is left behind on the old page while the paragraph continues on the next. The orphan property controls the minimum number of lines of a paragraph that …

Avatar of Sara Cope
Sara Cope on (Updated on )

opacity

The opacity property in CSS specifies how transparent an element is.

Basic use:

div {
  opacity: 0.5;
}

Opacity has a default initial value of 1 (100% opaque). Opacity is not inherited, but because the parent has opacity that applies …

Avatar of Sara Cope
Sara Cope on (Updated on )

overflow

The overflow property controls what happens to content that breaks outside of its bounds: imagine a div in which you’ve explicitly set to be 200px wide, but contains an image that is 300px wide. That image will stick out of …

Avatar of Sara Cope
Sara Cope on (Updated on )

outline

The outline property in CSS draws a line around the outside of an element. It’s similar to border except that:

  1. It always goes around all the sides, you can’t specify particular sides
  2. It’s not a part of the box model
Avatar of Sara Cope
Sara Cope on (Updated on )

max-width

The max-width property in CSS is used to set the maximum width of a specified element. The max-width property overrides the width property, but min-width will always override max-width whether followed before or after width in your declaration. Authors may …

Avatar of Sara Cope
Sara Cope on (Updated on )

min-width

The min-width property in CSS is used to set the minimum width of a specified element. The min-width property always overrides the width property whether followed before or after width in your declaration. Authors may use any of the length

Avatar of Sara Cope
Sara Cope on (Updated on )

max-height

The max-height property in CSS is used to set the maximum height of a specified element. Authors may use any of the length values as long as they are a positive value. max-height overrides height, but min-height always overrides max-height

Avatar of Sara Cope
Sara Cope on (Updated on )

min-height

The min-height property in CSS is used to set the minimum height of a specified element. The min-height property always overrides both height and max-height. Authors may use any of the length values as long as they are a …

Avatar of Sara Cope
Sara Cope on (Updated on )

margin

The margin property defines the outermost portion of the box model, creating space around an element, outside of any defined borders.

Margins are set using lengths, percentages, or the keyword auto and can have negative values. Here’s an example:

.box 
Avatar of Sara Cope
Sara Cope on (Updated on )