Log in

View Full Version : Preventing Line Break


Gooses
11-08-2006, 06:52 AM
Through some rather simple template modification, I moved the user title to below the post count, instead of having it right under the username like it is set up to be from the start. Now, I want it to say "Status:" and then the user's user title. I got that to work, however it automatically puts in a line break so what should look like this:
Status: Cool guy
looks like this:
Status:
Cool guy

So, my question is, how can I make all the text stay on one line, right after where it says status?

Thank you.

scdurwood
11-08-2006, 10:08 AM
Please post the code...

did you use a <div> tag when calling the user title?

Gooses
11-08-2006, 11:39 AM
Status:<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if><if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>

There you go; the code. So, what do I do?

scdurwood
11-08-2006, 12:40 PM
change your <div> tags to <span> tags...<div> adds a line break by default.

Gooses
11-08-2006, 05:12 PM
change your <div> tags to <span> tags...<div> adds a line break by default.
Thank you so much, it worked!