Login | Register | FAQ
Anonymous

Css style class for line height

+ Post a reply

3 posts Page 1 of 1


Css style class for line height

by rahul_bagi » Fri Apr 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?
User avatar

rahul_bagi

  • Posts: 4
  • Joined: Fri Sep 22, 2017 7:23 am
  • Location: india

Re: Css style class for line height

by meow » Sat May 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.
User avatar

meow

  • Posts: 5
  • Joined: Thu May 03, 2018 4:53 pm

Re: Css style class for line height

by brenko.web » Mon Jun 11, 2018 1:06 am

rahul_bagi wrote: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
User avatar

brenko.web

  • Posts: 8
  • Joined: Sun Nov 25, 2012 11:42 pm
--
Free online web development tutorials and articles at

http://www.brenkoweb.com/


+ Post a reply

Page 1 of 1