Forum:Creating an inline box

Hi folks How do you make a box that you can use inline? I'm trying to create a template which will give me a box I can use inline in articles, and also combine with other boxes in further templates, which themselves must be useable inline. I started down the route of a one-celled table, but it's riddled with obvious problems, not least of which is that you can't put tables inline as far as I can see, and I'm sure there's a better way just to make a box! Here's what I've got so far, but as you'll see, it looks pretty on its own but doesn't work once transcluded (the first one because the tags aren't closed (necessary for the second one), and the second one because of the inline problem). Can anyone point me in the right direction? Box template itself: w:c:discworldmud:Template:Magic Template using series of boxes combined: w:c:discworldmud:Template:SkillsMiscellaneous

Many thanks, Elwynd 15:52, 14 March 2009 (UTC)


 * Use &lt;span&gt;, or &lt;div style="display:inline;"&gt; --Ciencia Al Poder (talk) -WikiDex 16:30, 14 March 2009 (UTC)


 * Thank you! Div extends the formatting to the end of the line so I lose the box effect, but I used &lt;span&gt; which works beautifully in most places. I'm now trying to add it as part of a bullet point. I've used wiki-markup for the bullet point, and it seems to be closing the span too early.  Any advice?   Template here: w:c:discworldmud:Template:Ma.Me.Me.Cu and article here w:c:discworldmud:Gammer Shorga's Helpful Undergrowth

The bullets must be formatted on one line, the templates are across multiple, you should use line breaks (&lt;br /&gt;) to have them across multiple lines if that is what you want. For example (look at source):
 * About the div, I don't think it should be doing that - if it's set to display as inline it should have a width relative to the text size (as span does).

line 2 (no bullet) line 4 (bullet)
 * line 1 (bullet 1)
 * line 3 (bullet)
 * -- Sixorish 11:54, 15 March 2009 (UTC)


 * Thanks, Sixorish. Ok now I'm totally confused!  I wrote a long reply to explain that the point is I don't want it to split over multiples, and then I went back to my example doc to point out what I meant - only to find it's fine! Some weird updating delay or something, as I didn't make any changes in the mean time.   Thanks for your help, all... Elwynd 12:44, 15 March 2009 (UTC)