Search
 
SCRIPT & CODE EXAMPLE
 

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. */
Comment

can span have width

/* An html span element does not have width or height,
because it is an inline element */
span{
  width: 10px; /* Does not work. Apparent width is still 0. */
}
Comment

PREVIOUS NEXT
Code Example
Css :: text limit in css 
Css :: how to create a semi circle in css 
Css :: css list elements horizontally 
Css :: separar letras en css 
Css :: smooth transition css on hover 
Css :: css dark filter over image 
Css :: jquery css multiple line 
Css :: gatsby hide scroll bar 
Css :: symfony version check 
Css :: bring element to front css 
Css :: css background color 
Css :: css code to blur background 
Css :: css link 
Css :: remove border between td 
Css :: grid center align 
Css :: position absolute center 
Css :: chrome hide blue highlight css mobile 
Css :: flex one whole width 
Css :: responsive font size 
Css :: react app css add background image 
Css :: css resize image to fit div no stretching 
Css :: css button to bottom of div 
Css :: css center div vertically 
Css :: how to do text center of select element 
Css :: shadow on hover class on card bootstrap 
Css :: antd css 
Css :: on hover chang only border color of a button css 
Css :: tailwindcss cli with custom config file name 
Css :: center div inside div vertically and horizontally 
Css :: sass compile minified 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =