How to keep media at a wide aspect ratio for team profiles with CSS
Build a small standalone HTML example to keep media at a wide aspect ratio for team profiles, then check the behavior at narrow and wide viewport sizes.
A checked sequence of small worked examples. Choose a method and verify it before adapting the pattern.
1,000 guides · One step at a timeBuild a small standalone HTML example to keep media at a wide aspect ratio for team profiles, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to keep media at a wide aspect ratio for reading lists, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to keep media at a wide aspect ratio for notification cards, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to keep media at a wide aspect ratio for settings panels, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to keep a square preview for article cards, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to keep a square preview for tutorial headers, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to keep a square preview for topic lists, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to keep a square preview for profile cards, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to keep a square preview for review summaries, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to keep a square preview for comment panels, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to keep a square preview for search result cards, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to keep a square preview for resource lists, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to keep a square preview for course summaries, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to keep a square preview for bookmark collections, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to keep a square preview for event cards, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to keep a square preview for recipe summaries, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to keep a square preview for photo captions, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to keep a square preview for project cards, then check the behavior at narrow and wide viewport sizes.