+ 5

Css question

I want to make underline under the image not above the image. Here is my code. https://code.sololearn.com/WvU7eHaLJrVP/?ref=app

26th Nov 2020, 9:49 AM
Zwe Thu
Zwe Thu - avatar
6 odpowiedzi
+ 4
add a <br/> tag after the img and before the <hr>
26th Nov 2020, 9:58 AM
Med Amine Fh
Med Amine Fh - avatar
+ 7
There are many ways to do this. You can put it with the <hr> tag or border
26th Nov 2020, 10:12 AM
DEVELOPER
DEVELOPER - avatar
+ 2
Hi nknown ! I can't see any img but maybe use body(take "body" as an example){ text-decoration: position: relative; top: 50(it's example, it depends) } Hope it helps! Happy coding!
26th Nov 2020, 9:59 AM
Mike
+ 2
Thank all ! I got it now and have a good day.
26th Nov 2020, 10:01 AM
Zwe Thu
Zwe Thu - avatar
+ 2
Here you can see s live example with images all inclusive impementation in SL Playground: https://code.sololearn.com/W0zH3IDDAEPP/?ref=app
26th Nov 2020, 5:04 PM
JaScript
JaScript - avatar
+ 1
img { padding : 0.75rem; boder-bottom : 1px solid #000; }
26th Nov 2020, 9:58 AM
🇮🇳Vivek🇮🇳
🇮🇳Vivek🇮🇳 - avatar