Connexion | Inscription | FAQ
Anonymous

Css style class for line height

+ Publier une réponse

3 messages Page 1 sur 1


Css style class for line height

par rahul_bagi » Ven Avr 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 l’utilisateur

rahul_bagi

  • Messages: 5
  • Inscrit le: Ven Sep 22, 2017 7:23 am
  • Localisation: india

Re: Css style class for line height

par meow » Sam 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 l’utilisateur

meow

  • Messages: 5
  • Inscrit le: Jeu Mai 03, 2018 4:53 pm

Re: Css style class for line height

par brenko.web » Lun Juin 11, 2018 1:06 am

rahul_bagi a écrit: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 l’utilisateur

brenko.web

  • Messages: 8
  • Inscrit le: Dim Nov 25, 2012 11:42 pm
--
Free online web development tutorials and articles at

http://www.brenkoweb.com/


+ Publier une réponse

Page 1 sur 1