div block going to next line in Firefox

Posted by user550265 on Stack Overflow See other posts from Stack Overflow or by user550265
Published on 2011-02-10T15:14:36Z Indexed on 2011/02/10 15:25 UTC
Read the original article Hit count: 171

Filed under:
|

I have a div with display:block in my css. This div block uses the align = "absmiddle" . It displays all the elements in 1 line in Chrome. However, in firefox, the elements are displyed on to the next line as well. How do I get them to display in 1 single line in firefox.

P.S: I have already tried display: inline but it does not bring it in 1 line.

<div class="one"><input name="elementone" value="1" align="absmiddle" class="subone" /></div>

Css is

div.one,div.subone{
display:block; 
width:16px; 
height:100%;
background-position:0 0px;
border:0
}

© Stack Overflow or respective owner

Related posts about html

Related posts about css