Span is an inline element. It has no width or height.
You could turn it into a block-level element, then it will accept your dimension directives.
span.product__specfield_8_arrow
{
display: inline-block; /* or block */
}
More Related Contents:
- Canvas is stretched when using CSS but normal with “width” / “height” properties
- Canvas is stretched when using CSS but normal with `width` & `height` attributes
- 100% DIV width is not really 100%
- How would I achieve a shadow that won’t show through transparent text?
- Fill in text in HTML5
- How to make an element width: 100% minus padding?
- Is there a way to apply a CSS style on HTML5 datalist options?
- Show Child Div within Hidden Parent Div
- Changing three.js background to transparent or other color
- Failed to decode downloaded font
- How can I ensure that text is inside rounded div?
- Which HTML5 reset CSS do you use and why? [closed]
- Div height 100% and expands to fit content [duplicate]
- Bootstrap Element 100% Width
- Add a text suffix to
- html5 vertical spacing issue with
- How to position a div in the middle of the screen when the page is bigger than the screen
- Nested rows with bootstrap grid system?
- How to write a caption under an image?
- How to make the overflow CSS property work with hidden as value
- How do I line up 3 divs on the same row?
- CSS: How to align vertically a “label” and “input” inside a “div”?
- Div side by side without float
- Full background image with fade effect
- Why box-sizing is not working with width/height attribute on canvas element?
- How do I make text bold in HTML?
- Center fixed div with dynamic width (CSS)
- Is it acceptable to use tables for forms? Or is it still more correct to use divs?
- Change an HTML input’s placeholder color with CSS
- Stacking DIVs on top of each other?