Wikipedia:WikiProject User Page Help/Do-It-Yourself/Boxes
From Wikipedia, the free encyclopedia
[edit] Boxes
- To make a box, do the following:
- Type <div style="background-color:COLOR YOU WANT;"> before the text
- Choose the color (Check out these pages: [1][2][3] for a full list of colors you can use)
- Type your text
- 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