I am facing an issue with a display:block
div in my CSS. This div block is using the align = "absmiddle"
attribute. While all elements display in a single line in Chrome, they are moving to the next line in Firefox. How can I make them appear in one line in Firefox as well?
P.S: I have already attempted using display: inline
, but it didn't solve the problem.
<div class="one"><input name="elementone" value="1" align="absmiddle" class="subone" /></div>
CSS code:
div.one, div.subone {
display: block;
width: 16px;
height: 100%;
background-position: 0 0px;
border: 0;
}