Hello
I was to recommend a daypass. Yes you can drive as many times by Tram and Bus as you wish. But there are different passes, one is more expensive and applies to the whole region of North Western Switzerland (including trains) and the other one, If I am not mistaken costs about CHF 8.- ist just for Basel and very immediate environment.
Regards and safe travels, B.
Edit: Please check the website of the Basel Public Transport Provider:
http://www.bvb.ch/en/tickets-fares/s...es/day-tickets
The mentioned 8.50 day ticket takes you across basel and the nearby towns. The 16 CHF ticket is for the larger region.