CSS Color
CSS Properties
@charset @font-face @font-feature-values @import @keyframes @media align-content align-items align-self all animation animation-delay animation-direction animation-duration animation-fill-mode animation-iteration-count animation-name animation-play-state animation-timing-function backface-visibility background-attachment background-blend-mode background-clip background-color background-image background-origin background-position background-repeat background-size border border-bottom border-collapse border-color border-image border-image-outset border-image-repeat border-image-slice border-image-source border-image-width border-left border-left-color border-left-style border-left-width border-radius border-right border-right-color border-right-style border-right-width border-spacing border-style border-top border-top-color border-top-left-radius border-top-right-radius border-top-style border-top-width border-width bottom box-decoration-break box-shadow box-sizing break-after break-before break-inside caption-side caret-color clear clip color column-count column-fill column-gap column-rule column-rule-color column-rule-style column-rule-width column-span column-width columns content counter-increment counter-reset cursor direction display empty-cells filter flex flex-basis flex-direction flex-flow flex-grow flex-shrink flex-wrap float font font-family font-feature-settings font-kerning font-language-override font-size font-size-adjust font-stretch font-style font-synthesis font-variant font-variant-alternates font-variant-caps font-variant-east-asian font-variant-ligatures font-variant-numeric font-variant-position font-weight grid grid-area grid-auto-columns grid-auto-flow grid-auto-rows grid-column grid-column-end grid-column-gap grid-column-start grid-gap grid-row grid-row-end grid-row-gap grid-row-start grid-template grid-template-areas grid-template-columns grid-template-rows hanging-punctuation height hyphens image-rendering isolation justify-content left letter-spacing line-break line-height list-style list-style-image list-style-position list-style-type margin margin-bottom margin-left margin-right margin-top max-height max-width min-height min-width mix-blend-mode object-fit object-position opacity order orphans outline outline-color outline-offset outline-style outline-width overflow overflow-wrap overflow-x overflow-y padding padding-bottom padding-left padding-right padding-top page-break-after page-break-before page-break-inside perspective perspective-origin pointer-events position quotes resize right scroll-behavior tab-size table-layout text-align text-align-last text-combine-upright text-decoration text-decoration-color text-decoration-line text-decoration-style text-indent text-justify text-orientation text-overflow text-shadow text-transform text-underline-position title top transform transform-origin transform-style transition transition-delay transition-duration transition-property transition-timing-function unicode-bidi user-select vertical-align visibility white-space widows width word-break word-spacing word-wrap writing-mode
CSS - align-content

align-content

align-content aligns the content of the box. you also have to have the flex attribute set to true for this to work. 

align-content available values

align-content: stretch|center|flex-start|flex-end|space-between|space-around|initial|inherit;

Example using align-content: center;

Property Variable Name

align-content

Available Values for align-content

stretch|center|flex-start|flex-end|space-between|space-around|initial|inherit
demo box

Examples Using align-content values

Example using align-content stretch

Demo using align-content stretch

Here is an example using align-content:stretch;

Demo Box 1 Content

Code

<style>
.demo-box-1 {
  border-radius:3px;
  margin-bottom:10px;
  border:1px solid #000;
  height:220px;
  width:100%;
  display: flex;
  flex-wrap: wrap;
  align-content:stretch;
}
</style>
<h2>Demo using align-content stretch</h2>
<p>Here is an example using <code>align-content:stretch;</code></p>
<div class='demo-box-1'>Demo Box 1 Content</div>
Example using align-content center

Demo using align-content center

Here is an example using align-content:center;

Demo Box 2 Content

Code

<style>
.demo-box-2 {
  border-radius:3px;
  margin-bottom:10px;
  border:1px solid #000;
  height:220px;
  width:100%;
  display: flex;
  flex-wrap: wrap;
  align-content:center;
}
</style>
<h2>Demo using align-content center</h2>
<p>Here is an example using <code>align-content:center;</code></p>
<div class='demo-box-2'>Demo Box 2 Content</div>
Example using align-content flex-start

Demo using align-content flex-start

Here is an example using align-content:flex-start;

Demo Box 3 Content

Code

<style>
.demo-box-3 {
  border-radius:3px;
  margin-bottom:10px;
  border:1px solid #000;
  height:220px;
  width:100%;
  display: flex;
  flex-wrap: wrap;
  align-content:flex-start;
}
</style>
<h2>Demo using align-content flex-start</h2>
<p>Here is an example using <code>align-content:flex-start;</code></p>
<div class='demo-box-3'>Demo Box 3 Content</div>
Example using align-content flex-end

Demo using align-content flex-end

Here is an example using align-content:flex-end;

Demo Box 4 Content

Code

<style>
.demo-box-4 {
  border-radius:3px;
  margin-bottom:10px;
  border:1px solid #000;
  height:220px;
  width:100%;
  display: flex;
  flex-wrap: wrap;
  align-content:flex-end;
}
</style>
<h2>Demo using align-content flex-end</h2>
<p>Here is an example using <code>align-content:flex-end;</code></p>
<div class='demo-box-4'>Demo Box 4 Content</div>
Example using align-content space-between

Demo using align-content space-between

Here is an example using align-content:space-between;

Demo Box 5 Content

Code

<style>
.demo-box-5 {
  border-radius:3px;
  margin-bottom:10px;
  border:1px solid #000;
  height:220px;
  width:100%;
  display: flex;
  flex-wrap: wrap;
  align-content:space-between;
}
</style>
<h2>Demo using align-content space-between</h2>
<p>Here is an example using <code>align-content:space-between;</code></p>
<div class='demo-box-5'>Demo Box 5 Content</div>
Example using align-content space-around

Demo using align-content space-around

Here is an example using align-content:space-around;

Demo Box 6 Content

Code

<style>
.demo-box-6 {
  border-radius:3px;
  margin-bottom:10px;
  border:1px solid #000;
  height:220px;
  width:100%;
  display: flex;
  flex-wrap: wrap;
  align-content:space-around;
}
</style>
<h2>Demo using align-content space-around</h2>
<p>Here is an example using <code>align-content:space-around;</code></p>
<div class='demo-box-6'>Demo Box 6 Content</div>
Example using align-content initial

Demo using align-content initial

Here is an example using align-content:initial;

Demo Box 7 Content

Code

<style>
.demo-box-7 {
  border-radius:3px;
  margin-bottom:10px;
  border:1px solid #000;
  height:220px;
  width:100%;
  display: flex;
  flex-wrap: wrap;
  align-content:initial;
}
</style>
<h2>Demo using align-content initial</h2>
<p>Here is an example using <code>align-content:initial;</code></p>
<div class='demo-box-7'>Demo Box 7 Content</div>
Example using align-content inherit

Demo using align-content inherit

Here is an example using align-content:inherit;

Demo Box 8 Content

Code

<style>
.demo-box-8 {
  border-radius:3px;
  margin-bottom:10px;
  border:1px solid #000;
  height:220px;
  width:100%;
  display: flex;
  flex-wrap: wrap;
  align-content:inherit;
}
</style>
<h2>Demo using align-content inherit</h2>
<p>Here is an example using <code>align-content:inherit;</code></p>
<div class='demo-box-8'>Demo Box 8 Content</div>
Add Comment
Type in a Nick Name here