I'm aware that my table is too wide as it keeps going off the page on the right.
Is there a way to fix this?
I'm using lyx as I am a learner.
In LyX insert the two lines in ERT (Evil Red Text) mode (Ctrl-L) just before and after your tabular. In the documents preamble add
You can fix the width of the table to fit the width of your general text.
To fix the width of the table in LyX 2.0, right-click in a cell in the column, move to
This, however, will set the width of your table, but not the content of the table. If, e.g., you have a cell with a lot of text that extends beyond the margin, then also pick a width for that (those) column(s) under