Thanks for that, I know there are some themes that you can use, that have that feature as standard, but knowing how to do it manually gives me far more flexibility.