added width property

Added width property and better css handling