CSS and html for a fixed/relative legend layout