With the above code snippets (and coming up with some CSS) you should be able to achieve the same results.