freecrm
New Member
- Messages
- 629
- Reaction score
- 0
- Points
- 0
This isn't as simple as the title suggests.
I know you can have multiple options, as successive lines BUT...
I have a dynamically generated menu from a longtext database field. I don't want the menu to extend beyond the limit of my wrapper, so I set style="width:650px;".
However, this means that anything called from the DB that is longer than the field is not displayed.
I tried specifiying a css text-overflow and overflow but to no avail.
Anyt ideas?
I know you can have multiple options, as successive lines BUT...
I have a dynamically generated menu from a longtext database field. I don't want the menu to extend beyond the limit of my wrapper, so I set style="width:650px;".
However, this means that anything called from the DB that is longer than the field is not displayed.
I tried specifiying a css text-overflow and overflow but to no avail.
Anyt ideas?
Code:
<select name="ChassConstr" id="ChassConstr" style="width:650px;">
<?php do { ?>
<option value=
"<?php echo $row_chassis_constr_recordset['chassis_constr'];?>"
<?php if (!(strcmp($row_chassis_constr_recordset['chassis_constr'], $row_detail_recordset['chassis_constr']))) {echo "selected";} ?>
>
<?php echo $row_chassis_constr_recordset['chassis_constr'];?>
</option>
<?php
} while ($row_chassis_constr_recordset = mysql_fetch_assoc($chassis_constr_recordset));
$rows = mysql_num_rows($chassis_constr_recordset);
if($rows > 0) {
mysql_data_seek($chassis_constr_recordset, 0);
$row_chassis_constr_recordset = mysql_fetch_assoc($chassis_constr_recordset);
}
?>
</select>