css - What is the default height of <br> elements? -


i'm working web page uses <br> tags spacing , page layout, , want remove these tags , replace them equivalent in css make page more accessible screen readers.

as part of process, need replace break tags used spacing css-based padding.

could tell me default line break height can set padding equal height , save lot of time?

a <br> element represents line break. height of line break determined current line height of portion of document break element in.

the default line height depends on number of factors, including browser you're using , current font family. can find exact computed line height given element in chrome inspecting element, switching computed style tab, , filtering line-height property. in browsers, should able approximate height length value of around 1.2em. more on em units, see section on relative length units mdn.


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -