Skip to the content
Konstruktor UI

Website pieces

Quote

figure.kui-quote holds what a client said, in a <blockquote>, and who said it, in a <figcaption>. The quotation marks follow the language of the quote.

CSS only

Examples

A quote with the person

We used to spend the first week of every month on reminders. Now the reminders go out by themselves and we spend that week on our clients.
Milica PetrovićOwner, Petrović knjigovodstvo, Novi Sad
HTML
<figure class="kui-quote">
  <blockquote>We used to spend the first week of every month on reminders. Now the reminders go out by themselves and we spend that week on our clients.</blockquote>
  <figcaption>
    <span class="kui-avatar" aria-hidden="true">MP</span>
    <span class="kui-quote__who"><b>Milica Petrović</b><span>Owner, Petrović knjigovodstvo, Novi Sad</span></span>
  </figcaption>
</figure>

Centred, and in other languages

.kui-quote--center centres it. With lang on the blockquote the marks change: „…“ in German and Serbian, « … » in French, 「…」 in Chinese.

Die Mahnungen schreiben sich jetzt von selbst. Unsere Buchhaltungsabteilung hat endlich Zeit für das Wesentliche.
Hannelore SchüßlerGeschäftsführerin, Müller Bau
Prvi put znamo tačno ko nam duguje i koliko, a da ništa ne tražimo po fasciklama.
Đorđe StojanovićDirektor, Zeleni Šabac
我们的发票现在自动发送,客户也按时付款了。
Li WeiFinance lead, Huaxin Trading
HTML
<figure class="kui-quote kui-quote--center">
  <blockquote lang="de">Die Mahnungen schreiben sich jetzt von selbst. Unsere Buchhaltungsabteilung hat endlich Zeit für das Wesentliche.</blockquote>
  <figcaption><span class="kui-avatar" aria-hidden="true">HS</span><span class="kui-quote__who"><b>Hannelore Schüßler</b><span>Geschäftsführerin, Müller Bau</span></span></figcaption>
</figure>
<figure class="kui-quote kui-quote--center">
  <blockquote lang="sr-Latn">Prvi put znamo tačno ko nam duguje i koliko, a da ništa ne tražimo po fasciklama.</blockquote>
  <figcaption><span class="kui-avatar" aria-hidden="true">ĐS</span><span class="kui-quote__who"><b>Đorđe Stojanović</b><span>Direktor, Zeleni Šabac</span></span></figcaption>
</figure>
<figure class="kui-quote kui-quote--center">
  <blockquote lang="zh">我们的发票现在自动发送,客户也按时付款了。</blockquote>
  <figcaption><span class="kui-avatar" aria-hidden="true">LW</span><span class="kui-quote__who"><b>Li Wei</b><span>Finance lead, Huaxin Trading</span></span></figcaption>
</figure>

Classes and attributes

figure.kui-quote, --center
The quote and its caption; --center centres both.
blockquote
The words, as text directly inside it (one paragraph). The marks are added by CSS from its lang: do not type them.
figcaption, .kui-quote__who
The person: an avatar, the name in b, the role and place in a span.

Accessibility

  • blockquote inside figure with figcaption ties the words to the person for assistive technology.
  • The avatar is aria-hidden; the name is written next to it.
  • The marks are generated content and are not read twice.

Do and do not

Do

  • Quote a real person with their permission, by name and role.
  • Keep it to two or three sentences.

Do not

  • Do not write quotation marks in the text; the CSS adds them.
  • Do not make up quotes.