1 Reply Latest reply on Mar 17, 2010 8:27 AM by osgood_

    Boxing up stuff.

    silver-boyy

      how am i able to box a certain section of a HTML page?

       

      for example, i want to box h1, and the text below it. is it possible to have a light coloured fill for that box too?

       

      thanks.

        • 1. Re: Boxing up stuff.
          osgood_ Level 8

          silver-boyy wrote:

           

          how am i able to box a certain section of a HTML page?

           

          for example, i want to box h1, and the text below it. is it possible to have a light coloured fill for that box too?

           

          thanks.

          Without seeing your pages code/css it's almost impossible to give you an answer that will difinitively answer your question BUT you would wrap the content that you want to appear in a box in a <div> tag (see below) and then style it with some css

           

           

          <div id="h1plusTextWrapper">

          <h1>Some text</h1>

          <p>Some paragraph text</p>

          </div>

           

           

          #h1plusTextWrapper {

          background-color: #ff6;

          border: 1px solid #000;

          }