我不確定它的名稱,但是有人可以告訴我如何製作一個CSS樣式表,使所有頁面在給定寬度內適合,然後添加陰影類型效果,使得它看起來像一個頁面?頁面大小固定在中間寬度
事情是這樣的: http://www.news.com.au/
所以,你有白色(或灰色,或什麼都)邊界的兩邊,內容被放置在「邊界」之內。
編輯: 我曾嘗試這種風格,但它把在左上角的框:
style>
html, body {
background-color: #F0F0F0;
width: 100%;
margin: 0 auto;
font-family: "Trebuchet MS", Helvetica, sans-serif;
font-size: small;
}
#wrapper {
background-color: #fff;
width: 920px;
padding: 20px;
-moz-box-shadow: 0 0 5px #888;
-webkit-box-shadow: 0 0 8px#888;
box-shadow: 0 0 8px #888;
}
</style>
我的用法是:
<div id="wrapper">
<h1>Location Search</h1>
<h2>Simple Lookup</h2>
....
</div>
這是一張背景圖片。 – Pankucins 2013-04-05 07:18:24