Inline objects don’t have heights or widths. Why are you setting them inline to begin with? You probably want to either float them or use display: inline-block
.
More Related Contents:
- Can I have multiple background images using CSS?
- SVG data image not working as a background-image in a pseudo element
- Using CSS for a fade-in effect on page load
- Why bottom:0 doesn’t work with position:sticky?
- what exactly is device pixel ratio?
- Why isn’t it possible to combine vendor-specific pseudo-elements/classes into one rule set?
- z-index is canceled by setting transform(rotate)
- Centering brand logo in Bootstrap Navbar
- Twitter Bootstrap Multilevel Dropdown Menu
- CSS selector for attribute names based on a wildcard
- How to create equal height columns in pure CSS [duplicate]
- GWT theme style overrides my css style
- What does an “&” before a pseudo element in CSS mean?
- Removing display:flex adds spaces around a link. Why?
- Any way to remove IEs black border around submit button in active forms?
- Circle with two borders
- CSS for star ratings via FontAwesome
- Multiple descendant children selector with css [duplicate]
- How does the CSS specificity work? [duplicate]
- Create a row of flexbox items with a max height defined by one child [duplicate]
- Transparent hollow or cut out shape in HTML
- Can we change style? [duplicate]
- Pass function or mixin by reference in SASS
- Why box-sizing is not working with width/height attribute on canvas element?
- Center fixed div with dynamic width (CSS)
- CSS: transform: translate(-50%, -50%) makes texts blurry [duplicate]
- CSS: Left, Center, & Right Align Text on Same Line
- Row Wrap in flex-box not wrapping in Safari
- minmax fails (invalid property value)
- Select specific element before other element