Negative fields: can they work in IE7 and IE8?

I am trying to get some kind of dirty underline effect using a hyphen line, but I want it to come a little closer to a multi-line header than the line height.

Negative margin works in FF, but in IE there is no joy?

<p>a multiline title here<p><p style="margin: -7px 0px 10px 0px;">-----------------------------------------------------------------------------</p>
+3
source share
4 answers

ok fixed it, I reduced the line height on my tag ------

, the line height acts as the top edge ...

thanks guys

0
source

border-bottom 1px dashed black. IE6 , (, , , CSS). .

<p style="border-bottom: 1px dashed black;">a multiline title here</p>

( CSS)

+2

display: , div span bacause IE "p" , ff does

0

, -, , , , p .

-7px 10px. 10px, IE7,8

:

<p>a multiline title here<p><p style="margin: -7px 0px 0px 0px;">-----------------------------------------------------------------------------</p>
0

Source: https://habr.com/ru/post/1737189/


All Articles