title: Using Material Design card div element, but contents within card won't be centered
body: <p>I'm trying to add <code>align="center"</code> to this card that is from Material Design Lite:</p>
  
  <pre><code>&lt;main class="mdl-layout__content" align="center"&gt;
  &lt;div class="mdl-cell mdl-card mdl-shadow--4dp portfolio-card"&gt;
    &lt;div class="mdl-card__title"&gt;
      &lt;h2 class="mdl-card__title-text"&gt;
        &lt;strong&gt;FOOBAR TEXT&lt;/strong&gt;
      &lt;/h2&gt;
    &lt;/div&gt;
    &lt;div class="mdl-card__supporting-text"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I've tried adding it at each one of these divs both all together and separately and the contents with my card still won't center.</p>
  
  <p>This is what it looks like from my end:</p>
  
  <p><a href="https://i.stack.imgur.com/FZtxN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FZtxN.png" alt="enter image description here"></a></p>
  
  <p>The text in the center are actually MDL buttons that appear to be text until you mouse hover over them and they "pop out" to be a button (just a bell and whistle component). As you can see, "California" isn't quite centered, and quite frankly neither are the buttons (despite the main class element containing <code>align="center"</code>).</p>
  
  <p>I am using the MDL Portfolio Template:</p>
  
  <p><a href="https://getmdl.io/templates/portfolio/index.html" rel="nofollow noreferrer">Preview of the template</a></p>
  
  <p><a href="https://code.getmdl.io/1.2.1/mdl-template-portfolio.zip" rel="nofollow noreferrer">Download link of the template</a></p>
  
  <p>Here is the CSS as requested:</p>
  
  <pre><code>.portfolio-max-width {
      max-width: 900px;
      margin: auto;
      justify-content: center;
  }
  
  .portfolio-header {
    position: relative;
    background-image: url(images/header-bg.jpg);
  }
  
  .portfolio-header .mdl-layout__header-row {
    padding: 0;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
  }
  
  .mdl-layout__title {
    font-size: 14px;
    text-align: center;
    font-weight: 300;
  }
  
  .is-compact .mdl-layout__title span {
    display: none;
  }
  
  .portfolio-logo-row {
    min-height: 200px;
  }
  
  .is-compact .portfolio-logo-row {
    min-height: auto;
  }
  
  .portfolio-logo {
    background: url(images/logo.png) 50% no-repeat;
    background-size: cover;
    height: 150px;
    width: 150px;
    margin: auto auto 10px;
  }
  
  .is-compact .portfolio-logo {
    height: 50px;
    width: 50px;
    margin-top: 7px;
  }
  
  .portfolio-navigation-row {
    background-color: rgba(0, 0, 0, 0.08);
    text-transform: uppercase;
    height: 45px;
  }
  
  .portfolio-navigation-row  .mdl-navigation {
    text-align: center;
    max-width: 900px;
    width: 100%;
  }
  
  .portfolio-navigation-row .mdl-navigation__link {
    -webkit-flex: 1;
        -ms-flex: 1;
            flex: 1;
    line-height: 42px;
  }
  
  .portfolio-header .mdl-layout__drawer-button {
      background-color: rgba(197, 197, 197, 0.44);
  }
  
  .portfolio-navigation-row .is-active {
    position: relative;
    font-weight: bold;
  }
  
  .portfolio-navigation-row .is-active:after {
    content: "";
    width: 70%;
    height: 2px;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: rgb(255,64,129);
    left: 15%;
  }
  
  .portfolio-card .mdl-card__title {
    padding-bottom: 0;
  }
  
  .portfolio-blog-card-full-bg {
    background: url(images/example-blog03.jpg) center / cover;
  }
  
  .portfolio-blog-card-event-bg {
    background: url(images/example-blog05.jpg) center / cover;
  }
  
  .portfolio-blog-card-strip-bg {
    background: url(images/example-blog06.jpg) center / cover;
  }
  
  .portfolio-blog-card-compact .mdl-card__title {
    padding-bottom: 0;
  }
  
  .portfolio-blog-card-bg &gt; .mdl-card__actions {
    height: 52px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
  }
  
  img.article-image {
    width: 100%;
    height: auto;
  }
  
  .portfolio-max-width {
    max-width: 900px;
    margin: auto;
  }
  
  .portfolio-copy {
    max-width: 700px;
  }
  
  .no-padding {
    padding: 0;
  }
  
  .no-left-padding{
    padding-left: 0;
  }
  
  .no-bottom-padding {
    padding-bottom: 0;
  }
  
  .padding-top {
    padding: 10px 0 0;
  }
  
  .portfolio-share-btn {
    position: relative;
    float: right;
    top: -4px;
  }
  
  .demo-card-event &gt; .mdl-card__actions {
      -webkit-align-items: center;
          -ms-flex-align: center;
              align-items: center;
      box-sizing: border-box;
      display: -webkit-flex;
      display: -ms-flexbox;
      display: flex;
  }
  
  .portfolio-contact .mdl-textfield {
    width: 100%;
  }
  
  .portfolio-contact form {
    max-width: 550px;
    margin: auto;
  }
  
  footer {
    background-image: url(images/footer-background.png);
    background-size: cover;
  }
  </code></pre>