This sounds like a CSS styling issue, which has nothing to do with Drupal. The <font> tag is depreciated - you should stick with <span style=""> or <span class="important-form-text"> or similar. As to the actual problem, it will probably be a float: left/right, display:block, or similar problem - I'd use Firebug to quickly find it On 26 April 2011 20:32, Carl Jester <cjester@peladon.com> wrote:
I feel like I'm overlooking something simple. I'm writing a module that provides a form, I need to display some info along with the form, and sometimes I want to make a bit of that info really stand out.
$foo = $info1 . ' ' $info2 . ' ' . $info3; $form(['foo']=array( '#value' => $foo, );
Gives me: info1 info2 info3
OK, so far so good.
Now if I set up $foo like this: if ($info3 == $X) { $foo = $info1 . ' ' $info2 . ' <font color:red>' . $info3 .'</font>'; } else { $foo = $info1 . ' ' $info2 . ' ' . $info3 }
Then when foo == x I get: info3 info1 info2
Info3 is indeed red, but on the previous line. I've also tried inline style with <span style:...> and gotten the same result.
I just need to make info3 stand out in certain cases. What am I missing here?
Thanks, Carl