use percentage widths instead of hardcoding them (thanks @jeroenooms)