Yahoo Italia Ricerca nel Web

Risultati di ricerca

  1. 7 lug 2023 · The line-height CSS property sets the height of a line box. It's commonly used to set the distance between lines of text. On block-level elements, it specifies the minimum height of line boxes within the element. On non- replaced inline elements, it specifies the height that is used to calculate line box height.

  2. 3 ott 2020 · Caspert. 4,315 16 64 108. Yes, you can. em is a valid unit for CSS line-height property. – Raptor. Feb 28, 2013 at 10:07. 3. The accepted answer points out why one should NOT use any unit with line-height: because line-height is then calculated only ONCE and the result is inherited. To have line-height adjust with font-sizes, remove the unit.

  3. 5 set 2011 · The line-height property defines the amount of space above and below inline elements. That is, elements that are set to display: inline or display: inline-block. This property is most often used to set the leading for lines of text. The line-height property can accept the keyword values normal or none as well as a number, length, or percentage.

  4. 28 lug 2017 · The line-height CSS property sets the amount of space used for lines, such as in text. On block-level elements, it specifies the minimum height of line boxes within the element. On non-replaced inline elements, it specifies the height that is used to calculate line box height. all elements. It also applies to ::first-letter and ::first-line.

  5. 10 ago 2009 · p {font:normal normal 11pt Verdana,Arial,sans-serif; line-height:1.3em;} sub {vertical-align:baseline; position:relative; top:0.3em; line-height:0;} Of course, when we do that we’re assuming there will always be other (non-subscript) text on every line, to establish the correct line spacing.

  6. CSS Demo: line-height. line-height: normal; line-height: 2.5; line-height: 3 em; line-height: 150%; line-height: 32 px; Far out in the uncharted backwaters of the unfashionable end of the western spiral arm of the Galaxy lies a small unregarded yellow sun.

  7. Specifies the line height using a percentage value (for example 130% ). The computed value of the property is this percentage multiplied by the element's computed font size. Negative values are illegal. In addition, all CSS properties also accept the following CSS-wide keyword values as the sole component of their property value: initial.