Great code. I have been looking to do this for ages and everyone was telling me it was impossible.

Is it possible to adapt the code in any way so that you do not have to define the width?

i.e....