Entrar | Registrar | FAQ
Anonymous

Css style class for line height

+ Postar uma resposta

3 Mensagens Página 1 de 1


Css style class for line height

por rahul_bagi » Sex Abr 13, 2018 7:34 am

Can you do a style class or id for a

<br>

so it would apply to just the one you want?
Avatar de usuário

rahul_bagi

  • Mensagens: 5
  • Data de registro: Sex Set 22, 2017 7:23 am
  • Localização: india

Re: Css style class for line height

por meow » Sáb Mai 05, 2018 6:44 pm

Yes. 'line-height' applies to all elements.
https://www.w3.org/TR/CSS2/visudet.html ... ine-height

Question is if you should. BR is very seldom the right element to use.
Avatar de usuário

meow

  • Mensagens: 5
  • Data de registro: Qui Mai 03, 2018 4:53 pm

Re: Css style class for line height

por brenko.web » Seg Jun 11, 2018 1:06 am

rahul_bagi escreveu:Can you do a style class or id for[url][/url] a

<br>

so it would apply to just the one you want?


You can, but <br /> is only a break line. Better application of the line-height would be on block-type elements elements.
http://www.brenkoweb.com/tutorials/css/css-visual-formatting-model/line-height-and-vertical-alignment
http://www.brenkoweb.com/tutorials/html/html-text/br-tag
Avatar de usuário

brenko.web

  • Mensagens: 8
  • Data de registro: Dom Nov 25, 2012 11:42 pm
--
Free online web development tutorials and articles at

http://www.brenkoweb.com/


+ Postar uma resposta

Página 1 de 1