I’ve got some CSS puzzles to solve. Here’s a sample view, straight out of the “blogs” demo:
<div class="row">
<?php echo $form->labelEx($model,'author'); ?>
<?php echo $form->textField($model,'author', array('size'=>60)); ?>
<p class="hint">Hint: Enter author name</p>
<?php echo $form->error($model,'author'); ?>
</div>
Here’s what I’d like to change:
[list=1]
[*]Appearance of error message:
Right now, when the field is invalid, the validation error message appears directly to the right of the text field. Instead, I’d like to the validation error message to appear below the text field, and aligned-left with the text field itself.
[b]
[*]Appearance of the "hint" [/b](similar to above question, but a bit different!):
Right now, when the “hint” appears on its own line, left justified, so that it begins directly beneath the label “Author”. Instead, I’d like the hint to appear below the text field, and aligned-left with the text field itself.
[/list]
This is something that’s easy to accomplish with tables, but I’d much rather do things the right way, with div’s.
Any help appreciated!
Emily