How to make this sp2 as tall as sp3?

when reducing the resolution, I want the height of this sp2 to be as full of div1 as sp3. I set height:100%. Why doesn"t it work? Can this be done without changing the current layout?

<!DOCTYPE html>
<html>
<head>
    <title></title>
    <style type="text/css">
    -sharpdiv1{width: 100%;min-height: 50px;background-color: yellow}
    -sharpsp2{width: 20%;min-height: 100%;display: inline-block;background-color: blue;}
    -sharpsp3{width: 50%;min-height: 100%;display: inline-block;background-color: red;word-break: break-all;word-wrap: break-word;}
    </style>
</head>
<body>
<div id="div1">
    <span id="sp2">aaa</span>
    <spanv id="sp3">ssssssssssssssssaaaasssssssssssssssssssssssaaaasssssssssssssaaaaasss</span>
</div>
</body>
</html>
Mar.21,2021

flex table?
or sp3 margin-left:20% sp2 location?


http://jsbin.com/tecutofewi/2.


-sharpdiv1>span{
      vertical-align: top;
    }
    
 document.getElementById("sp2").style.height=document.getElementById("sp3").offsetHeight+"px";

change the inline block elements to the top alignment, and use js to make the height of the two elements equal


use flex
https://codepen.io/caocong/pe.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3a93c-2c230.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3a93c-2c230.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?