auto detect string lenght so buffer will return proper lenght
css cannot be read relatively, use css from sample instead.