I want to create a span with a fixed width that when I type any thing in the span like lgasdfjksdajgdsglkgsadfasdfadfasdfadsfasdfasddkgjk
lgasdfjksdajgdsglkgsadfasdfadfasdfadsfasdfasddkgjk
By default a span is an inline element... so that's not the default behavior.
span
inline
You can make the span behave that way by adding display: block; to your CSS.
display: block;
span { display: block; width: 100px; }