Use the border property on the body element:
body { margin: 0; padding: 1.5em; border: 50px #666 ridge; }Discussion
The border property is a shorthand property, in that it enables you to set the width, color, and style of the border around an element in one step instead of three. If you didn't use this shorthand property in the preceding Solution, you would have to replace the line that reads border: 50px #666 ridge; with the following three lines:
border-width: 50px; border-color: #666; border-style: ridge;
You can create a framing effect with other styles as well, such as dotted, dashed, solid, double, groove, inset, and outset
--
we drink green tea

没有评论:
发表评论