On Thu, 24 Jan 2019 08:05:20 -0800 (PST), zpksoft wrote:
>> Albo wstaw ikonę w tło danego elementu +
>> padding z lewej.
>
> Pewnie jest ikona w tle, ale dlaczego w tle znacznika <i>? (co tu jest italic?)
Świat jest na innym etapie, <i> to już nie italic:
"In earlier versions of the HTML specification, the <i> element was merely
a presentational element used to display text in italics, much like the <b>
element was used to display text in bold letters. This is no longer true,
as these tags now define semantics rather than typographic appearance. A
browser will typically still display the contents of the <i> element in
italic type, but is, by definition, no longer required to."
Teraz <i> jest bliżej do <icon> niż <italic>, zaleca go sam oogiel, buk
internetów:
http://google.github.io/material-design-icons/#icon-font-for-the-web
--
pozdrawiam
Roman Tyczka