Question:

HTML code for a red page border?

by  |  earlier

0 LIKES UnLike

HTML code for a red page border?

 Tags:

   Report

3 ANSWERS


  1. Between your head tags and adjust width/height to what you want:

    <style type="text/css">

      div#wrap {

      width: 800px;

      height: 600px;

      border: 20px inset #f00;

      }

      </style>

    Between the body tags:

    <div id="wrap">

    page contents

    </div>

    There are a lot of border values.  See source for list.

    Ron


  2. img

    {

        border-color: red;

        border-width: 10px;

        border-style: solid;

    }

    you can try this and you could change around the size and style of the border. I hope this helps.

  3. If you want the background behind your page to be red do this.

    <body style="background-color:RED">

    If you want the border of some element on your page, best would be a <div>, add the following style attributes to that element

    style="border-color:RED; border:1px solid"

    Example

    <div style="border-color:RED; border:1px solid">Your Content</div>

    You can adjust the attributes as you like, for example you can add a hex value, #FFFFFF, in place of the word RED. Also you can increase or decrease the value infront of the px to define how thik or thin the border will be. The word solid can be swapped with dotted, dashed and a bunch of other values that will affect the visual appearance of the line around the element you are applying the style to.

    A good resource for CSS http://home.tampabay.rr.com/bmerkey/chea...

Question Stats

Latest activity: earlier.
This question has 3 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions