Hello @pranalipatel,
I spoke too soon! The code does work but for some reason it messes with the look of lots of different elements on my website, such as the height of certain elements.
Here is a link to my website, where you will see the issue:
http://www.skewen-angling.co.uk/
If you scroll down you will see the issue.
Any ideas why this is happening?
Thanks!