display:inline resets height and width
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
.
Use this:
display:inline-block;
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
.
Use this:
display:inline-block;