I'm admittedly a middle layer web developer and know enough CSS to output pretty text, but not much else.
I have hit a wall trying to produce the following *simple* example layout
First Name: [form_textfield] Last Name: [form_textfield]
I'm building the following output string like this:
$output .= "<div class='col_form'>First Name:</div>" . form_textfield('', 'firstname', $node->firstname, 20, 20, null, null, true) . <div class='col_form'>Last Name:</div>" . form_textfield('', 'lastname', $node->lastname, 20, 20, null, null, true);
The HTML output looks like this:
<div class='col_form'>First Name:</div><div class="form-item">
<input type="text" maxlength="20" class="form-text required" name="edit[firstname]" id="edit-firstname" size="20" value="" />
</div><div class='col_form'>Last Name:</div><div class="form-item">
<input type="text" maxlength="20" class="form-text required" name="edit[lastname]" id="edit-lastname" size="20" value="" />
</div>
Yet each label and text field appear on separate lines:
First Name: [form_textfield]
Last Name: [form_textfield]
There's something about class "form-item" that's forcing the line break. I examined drupal.css, but nothing appeared obvious to me. I know it's possible to change this behavior by adding a sub class, but with what attribute?
I would be sincerely grateful if someone could help me out. Thank you.