Answers for "span cant add width css"

CSS
0

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. */
Posted by: Guest on January-17-2022

Browse Popular Code Answers by Language