Jump to content

How add a box?


Raphael

Recommended Posts

it's css work.

all what you need to do is to style the div.

for example:

CSS:
body{
 margin:0;
 padding:0;
 background-color:#ccc;
}
.content{
 width:400px;
 padding:50px;
 text-align:center;
 margin:10px auto 10px auto;
 background-color:#fff;
 border:10px solid #ddd;
 border-radius:10px
}

Html:
<div class="content">
 Content Content Content Content Content Content</br>
 Content Content Content Content Content Content</br>
 Content Content Content Content Content Content</br>
 Content Content Content Content Content Content</br>
 Content Content Content Content Content Content</br>
 Content Content Content Content Content Content</br>
 Content Content Content Content Content Content</br>
Content Content Content Content Content Content</br>
 Content Content Content Content Content Content</br>
 Content Content Content Content Content Content</br>
</div>

and here is a working example:http://cssdeck.com/labs/muck3iit

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...