How can I hit the inline 1px image but not the rest of the line?

I need an inline image for a 1px position below the baseline. How can I do that?

Thanks Mike

+3
source share
2 answers

The relative position should do the trick:

img.icon {
    position: relative;
    top: 1px;
}
+7
source

You can also fake it by editing the image:

add as many transparent lines above your current image as necessary, and you're done!

0
source

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


All Articles