FANDOM


  • Hi, I'm working on a template, and I can't seem to add the border, no matter how much code I put into it. What is the proper code?

      Loading editor
    • Be specific. What kind of border?

      Here's code for a simple border with slightly curved corners.

      {|style="border-radius:4px; width: 100%; border: 3px solid #FF0000; margin-bottom: 7px;" border="0" cellpadding="2" cellspacing="4"
      |
      {{{TEXT}}}
      |}
      

      The default colour of this border is red (#FF0000). You can change it by replacing the hex code to fit the colour you desire.

      If you want your text to be in the center of the box, you can add

      <center>Text</center>
      

      Now the box should look something like this:

      {{{TEXT}}}

      Hope this is what you needed.

        Loading editor
    • DZeP wrote:
      Be specific. What kind of border?

      Here's code for a simple border with slightly curved corners.

      {|style="border-radius:4px; width: 100%; border: 3px solid #FF0000; margin-bottom: 7px;" border="0" cellpadding="2" cellspacing="4"
      |
      {{{TEXT}}}
      |}
      

      Thank you The default colour of this border is red (#FF0000). You can change it by replacing the hex code to fit the colour you desire.

      If you want your text to be in the center of the box, you can add

      <center>Text</center>
      

      Now the box should look something like this:

      {{{TEXT}}}

      Hope this is what you needed.

        Loading editor
    • You're welcome.

        Loading editor
    • A FANDOM user
        Loading editor
Give Kudos to this message
You've given this message Kudos!
See who gave Kudos to this message
Community content is available under CC-BY-SA unless otherwise noted.