Forums

How can I put a Box Around the Text? (2 posts)

  1. Ian Ratledge
    Member
    Posted 3 years ago #

    I am trying to put a box around the text in some of my posts.

    An example of what I am trying to do is on
    http://www.nometet.com/news/braid-coming-to-steam/

    Notice the grey box surround some of the text on the page.

    Please can someone tell me how to put a box like that around my text.
    Please help

    Many thanks

  2. thisisedie
    Member
    Posted 3 years ago #

    Just jot something up in your stylesheet like:

    .box {
    background-color:#D4D4D4;
    color:#000000;
    width:450px;
    padding:15px;
    border:1px solid #000000;
    }

    and then in your post do something like:

    <div class="box">
    text in box
    </div>

Topic Closed

This topic has been closed to new replies.

About this Topic