Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css set width of a span

span {    /* Normally a span has no width! */
  display: inline-block; /* This fixes it. */
  width: 50px; /* Whatever width you like. */
}
/* Does not work in FF2 and below. */
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #css #set #width #span
ADD COMMENT
Topic
Name
7+9 =