我不是一個真正的冠軍,當涉及到CSS,所以我希望我能得到一些幫助。的DIV在父DIV重疊時調整
現在我有一個父格有兩個孩子的div。目前,無論何時調整瀏覽器大小,兩個div都相互重疊。我希望左邊的div始終可見。
它可以在行動被視爲在這裏:http://unlimitedbrettworks.com/forums/
CSS:
#header {
position: relative;
height: 140px;
overflow: hidden;
background-color: #E1E1E1; }
#logo a {
overflow: hidden;
float: right;
width: 620px !important;
height: 190px !important;
cursor: pointer;
background: url(../images/art/logo.png) no-repeat;
}
#userarea {
float: left;
margin: 0 1em;
padding: 1.5em 1em 0 1em;
text-align: left;
font-size: 0.95em;
width: 38em;
color: #313131;
font-family: tahoma, sans-serif;
line-height: 130%;
}
#userarea a:link, #userarea a:visited {
color: #333333;
}
#userarea a:hover {
color: #800000;
text-decoration: underline;
}
只是有點建議下次,總是使用靜態容器。它是一個固定寬度(比較喜歡960像素)的網站容器,所以網站總是960像素,你的屏幕有多大或多小。 – 2013-03-15 10:44:45
謝謝你的建議。事情是,我沒有創建這個論壇風格。我只是編輯東西。 – KazukiMutou 2013-03-15 10:51:16