+ 1

How do I get rid of the excess space in the IMG column

<!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="" content=""> <title></title> </head> <body> <table border="1"> <tr> <th>Serial</th> <th>Name</th> <th>Copies</th> <th>Confirm</th> </tr> <tr> <td></td> <td><a href="https://www.freeiconspng.com/img/45589" title="Image from freeiconspng.com"><img src="https://www.freeiconspng.com/uploads/16x16-plus-icons-no-attribution-0.png" width="350" alt="16x16 Plus Icons No Attribution" /></a></td> <td></td> </tr> </table> <style type="text/css" media="all"> IMG { width:20%;} </style> </body> </html>

23rd Aug 2021, 11:31 AM
Olorunsogo Abiodun Isaac
Olorunsogo Abiodun Isaac - avatar
4 odpowiedzi
+ 5
I'mabiodun you can use any units that allowed in css except %, that will solve your problem
23rd Aug 2021, 12:39 PM
Kelvin Paul
Kelvin Paul - avatar
+ 4
Set img width in px, eg. img { width: 48px; } https://code.sololearn.com/WUv2LuNQ6aiJ/?ref=app
24th Aug 2021, 12:45 AM
Calviղ
Calviղ - avatar
+ 1
Img{ Min-width : 50px Or Width: 50px or 50% }
24th Aug 2021, 6:08 AM
Nipun
Nipun - avatar
0
Hi, please save your code in a playground script and then link it here. That way it is easier for other users to check the code and help you!
23rd Aug 2021, 12:25 PM
Lisa
Lisa - avatar