table{ margin: 0 auto; width: 85%; height: 80%; margin-top: 5%; border-collapse: collapse; td{ position: relative; width: 50%; height: 2.246094rem; p{ font-size: 20px; margin: 8px 0; } span{ font-size: 15px; font-weight: 500; color: gray; } input{ position: absolute; width: 100%; height: 2.246094rem; left: 0; top: 0; opacity: 0; } .image{ height: 100%; width: 299px; } .deleteicon{ position: absolute; right: 0.058594rem; top: 0.058594rem; } } } table,table tr th, table tr td { border:1px solid black;text-align: center; }