+ 1

Hey guys, pls help with this, my table isnt getting any wider, whats the problem?

<table bgcolor="yellow" border="4" height="60px " width="100px"> <tr> <td align="center" colspan="2">monday</td> </tr> <tr> <td> 08:00-09:00</td> <td colspan="2"> workking out</td> </tr> <tr> <td>09:00-15:00</td> <td> reading and youtube</td> </tr> <tr> <td>15:00-17:00</td> <td>study</td> </tr> <tr> <td align="center" colspan="2">tuesday</td> </tr> <tr> <td>08:00-09:00</td> <td>working out</td> <tr> <td>09:00-15:00</td> <td>reading and youtube</td> </tr> <tr> <td>15:00-17:00</td> <td>studying</td> </tr> <tr> <td>18:00-21:00</td> <td>hockey practice</td> </tr> <tr> <td align="center" colspan="2">wednesday</td> </tr> </Table>

11th Apr 2022, 9:46 AM
Zanele
Zanele - avatar
4 Answers
+ 2
pixel are like points. It may not same width for all mobile screens. Some have 100px wide some have 400px, or any other.. So using pixel only set that much width, may it looks wider or lesser than screen. But 100% ,uses total screen width depend upon screen size. You don't need to bother how many pixels... edit: Zanele for my mobile, width="380px" working fine for full screen width. is it same for you? you can check, if it's exactly same, you can use.
11th Apr 2022, 10:48 AM
Jayakrishna 🇼🇳
+ 1
Use % not pixels..
12th Apr 2022, 8:58 AM
Samson Lukhele
0
width=100%
11th Apr 2022, 10:33 AM
Jayakrishna 🇼🇳
0
So not px?
11th Apr 2022, 10:36 AM
Zanele
Zanele - avatar