How can I make the img height the same as the paragraph beside it, in any screen size? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How can I make the img height the same as the paragraph beside it, in any screen size?

https://code.sololearn.com/WbFcaoQm5N8m/?ref=app

25th Feb 2020, 8:42 PM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
5 Answers
+ 1
Output is blank.
9th Mar 2020, 12:23 PM
OWINO ALFRED
OWINO ALFRED - avatar
+ 1
It shouldn't be. It works on my phone and laptop.
9th Mar 2020, 12:37 PM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 1
💜 Alex Tușinean 🍇 ,hello There is indeed an output, we just haven't been able to wait the 6s it takes to load totally. When you say same size as the p, you mean the real p element or the div containing it?
9th Mar 2020, 4:16 PM
EmmanueLZ.
EmmanueLZ. - avatar
0
💜 Alex Tușinean 🍇 Hello, Concerning your question,have you considered using the CSS rule @media queries which allow specify rules according to screens...? (Beside of that, from your code nothing appears in the output for me.)
25th Feb 2020, 11:12 PM
EmmanueLZ.
EmmanueLZ. - avatar
0
From what I see, you didn't size your p element (no height) from #firstparagraph , also maybe instead of wrapping in table, you could try something with display:flex or display: grid on #homepage, and then play with property of their elements...(align-items for flex...)
9th Mar 2020, 4:37 PM
EmmanueLZ.
EmmanueLZ. - avatar