Wikipedia:WikiProject User Page Help/Do-It-Yourself/Boxes

From Wikipedia, the free encyclopedia

[edit] Boxes

  • To make a box, do the following:
  1. Type <div style="background-color:COLOR YOU WANT;"> before the text
  2. Choose the color (Check out these pages: [1][2][3] for a full list of colors you can use)
  3. Type your text
  4. Type </div> after the text
  • Overall, your code should look like this:
<div style="background-color:yellow;">Hi</div>
  • Which will look like:
Hi

[edit] Curved borders

  • To make borders curved (only works in mozilla-based browsers) add the following code to the code described in the previous section:
  • -moz-border-radius:15px;
  • So, now your code should look like <div style="background-color:yellow; -moz-border-radius:15px;">Hi</div>
  • Which would show up as
Hi