Skip to content

Photo Button

Photo buttons are used as visual navigation to provide the user with a quickly scannable cues for the link destination.

Open Full Example
<a class="button-photo" href="https://www.uoregon.edu/">
  <div class="button-photo__photo">
    <img src="/test-image-landscape.jpg" alt="Test Image" />
  </div>
  <span class="button-photo__caption">Photo Caption</span>
</a>
Open Full Example
<a class="button-photo button-photo--noshade" href="https://www.uoregon.edu/">
  <div class="button-photo__photo">
    <img src="/test-image-landscape.jpg" alt="Test Image" />
  </div>
  <span class="button-photo__caption">Photo Caption</span>
</a>
Open Full Example
<a class="button-photo button-photo--shade" href="https://www.uoregon.edu/">
  <div class="button-photo__photo">
    <img src="/test-image-landscape.jpg" alt="Test Image" />
  </div>
  <span class="button-photo__caption">Photo Caption</span>
</a>

Photo buttons should be used in a group (often in a grid) as navigation to linked content that shares a common theme, and also can be identified visually. They should always include a link, photo, and link text.

  • When several grouped links have clear imagery: When images can aid in quickly identifying a links function, it makes the navigation more scannable.
  • Keep consistent styles: Use the same photo button style for a set of buttons.
  • Avoid long text: Sentences or long text strings may not display correctly on small photos and obscure the photo.
  • Avoid bright white images: Bright white images may make the text contrast insufficient for accessibility and legibility.
  • Ensure the image provides proper contrast for text: Using very light-colored images or visually complex images may make the text hard to read or result in less than required color contrast.
ElementDescriptionUsageRequiredMultiple
PhotoThe button’s photoPick a photo that conveys the meaning of the linkYesNo
CaptionThe text of the linkUse short, clear text that is 1-3 wordsYesNo
ClassnameEffectReason to Use
(Default, no style class)Gradient over text at bottomUse for most cases
button-photo--shadeBox shadow over text, centered on imageUse when the default gradient contrast is not sufficient
button-photo--noshadeText centered on image, no shadow or gradientUse when the photos are very dark and do not need a shade