If you want an avatar to appear on the card, use the <md-card-avatar>
directive, which must be placed within the <md-card-header>
directive. The <md-card-avatar>
directive accepts an <img />
tag.
Optional: .md-user-avatar
, which makes the <img />
tag have a circle look.
index.html:
<md-card>
<md-card-header>
<!--Avatar-->
<md-card-avatar>
<img src="/path/to/avatar.svg" class="md-user-avatar"/>
</md-card-avatar>
<!--Header text-->
<md-card-header-text>
<span class="md-title">Lorem</span>
<span class="md-subhead">Ipsum</span>
</md-card-header-text>
</md-card-header>
<!--Card image-->
<img src="/path/to/cardimage.svg" class="md-card-image" alt="Card Image">
<!--Card title-->
<md-card-title>
<md-card-title-text>
<span class="md-headline">Card header</span>
</md-card-title-text>
</md-card-title>
<md-card-content>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus posuere et risus sed finibus. Nunc vestibulum sagittis enim ut sagittis.</p>
</md-card-content>
</md-card>