Hi,
I use the following code to pack several short input fields on a line:
It works with Firefox, IE7, etc but IE8 shows 1 field per line, exactly as if there was a cfclear div after each field.
I tried moving the form_item div outside of the php loop so that all input fields are within a single div with no noticeable effect.
Any suggestions?
Thanks,
jb
I use the following code to pack several short input fields on a line:
<?php $classnames = array ('B','G','R','Y','1G','1H','2H','2M','3G', '3M','4B','4C','5B','5S','6A','6S'); ?>
...
<?php foreach ($classnames as $label) { ?>
<div class="form_item">
<div class="form_element cf_textbox">
<label style="display: block; width: 40px;" class="cf_label"><?php echo $label; ?></label>
<input class="cf_inputbox validate-number" maxlength="5" size="5" id=<?php echo $label; ?> name=<?php echo $label; ?> title='' type="text">
</div>
</div>
<?php } ?>
<div class="cfclear"> </div>
It works with Firefox, IE7, etc but IE8 shows 1 field per line, exactly as if there was a cfclear div after each field.
I tried moving the form_item div outside of the php loop so that all input fields are within a single div with no noticeable effect.
Any suggestions?
Thanks,
jb