andy55 Glad that you have been able to get it right by using z-index property alongwith other inline CSS declarations which specifies the stack order of an element as an element with greater stack order is always in front of an element with a lower stack order which I presume should be the right way 🙂
You can always let us know in case you need further assistance with the parent topic by replying here however live site link always helps in debugging and troubleshooting varied issues in realtime and providing clear/concise solutions
Cheers