• rcspeck

    (@rcspeck)


    When blogging, I can put a block of text in a grey box like so:

    <p class=greybox>My text</p>

    But how can I put a box within a box? Also how can I put multiple paragraphs in a box? Is grey the only color available for the boxes? And finally can someone post a link pointing to where I can learn more about mark up tags for WordPress?

    Thank you.

Viewing 1 replies (of 1 total)
  • vtxyzzy

    (@vtxyzzy)

    What you are showing is HTML markup, not unique to WP. Here is an extensive tutorial on HTML.

    The usual way to create a ‘box’ is to use a div:

    <div class='my_outer_box'>
       <div class='my_inner_box>
          <p>An inner paragraph</p>
          <p>Another inner one</p>
       </div><!-- End of my_inner_box -->
    </div><!-- End of my_outer_box -->

    The divs would then be styled with css:

    .my_outer_box {
       border: 2px solid green;
    }
    .my_inner_box {
       padding: 5px;
       border: 1px solid red;
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Box Within a Box’ is closed to new replies.