Below is an example of an inline element - the span - and a block level element - the div. Both been styled with CSS to have a border and a width of 20em (check the source code). As you can see, you can only use CSS to set the width of a block level element. Setting the width of an inline element has no effect.
test spantest div