making starting width based on css value, rather then hard coding it