I am trying to make a table in HTML. When I resize the window down to be narrow and the window tries to squash everything to fit inside the window even though it’s narrow, it puts the contents of a cell on different lines. I don’t want this to happen. E.g.:
home about contact us
when you narrow down the browser window:
home about contact
us
This is really annoying. I have tried putting instead of a space where the space is, but it didn’t help. Does anyone know the solution?
Try adding CSS attribute of white-space to the
<td>elements of the table. In particular,<td style='white-space: no-wrap;'>