I've made a CSS table structure using display table, table-row and table cell properties.
Each p has table-row property and they jump line OK. But when I put 2 o more elements (input or select) in the same <p>
I would like that this elements were inline but in IE (last version) jump of line in spite of to belong to he same <p>
Is there any solution to fix this? The perfect visualization is like Firefox, all elements in line.
<p><label>Name (first, second): </label><input type="text" /><input type="text" /></p>
Example: http://jsfiddle.net/HY62t/
Add the following Class in your CSS.
fieldset input{display:inline-block}
It will resolve your issue and display properly in all the browsers.
Add vertical-align: top
(and padding-top
) or middle
to labels
.
In case of two inputs on separate lines zou can use for example fieldset input {float: left;}
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.