How to make the first line distinct for photo captions with CSS
Build a small standalone HTML example to make the first line distinct for photo captions, 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 make the first line distinct for photo captions, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to make the first line distinct for project cards, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to make the first line distinct for feature panels, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to make the first line distinct for support articles, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to make the first line distinct for team profiles, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to make the first line distinct for reading lists, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to make the first line distinct for notification cards, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to make the first line distinct for settings panels, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to style a selected text range for article cards, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to style a selected text range for tutorial headers, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to style a selected text range for topic lists, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to style a selected text range for profile cards, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to style a selected text range for review summaries, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to style a selected text range for comment panels, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to style a selected text range for search result cards, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to style a selected text range for resource lists, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to style a selected text range for course summaries, then check the behavior at narrow and wide viewport sizes.
Build a small standalone HTML example to style a selected text range for bookmark collections, then check the behavior at narrow and wide viewport sizes.