1
CSS에 익숙하지 않습니다. 내비게이션을위한 왼쪽 하나, 페이지 내용을위한 가운데 하나, 외부 링크와 노트를위한 오른쪽의 3 개 컬럼을 가진 웹 페이지를 구축하고 있습니다. 처음에 너비가 퍼센티지로 갔을 때 오버 플로우가 발생했습니다. 이제 오른쪽 경계선이 사라지는 것처럼 오버플로가 작동하지 않습니다. 여기 내 코드가있다. 제발 도와주세요. 미리 감사드립니다.CSS에서 여백 및 오버 플로우가 작동하지 않습니다.
//Total pixels: 1366px. (I found this after running a given code on www.w3schools.com).
#rightcontentborder {
border: 2px solid;
padding: 5px;
/* border-radius: 1em;*/
//Left-margin = 1366 - 716 = 650px.
margin-left: 650px;
margin-right:1366px;
// width:50px;
height:700px;
// overflow:scroll;
float: right;
position: absolute;
}
#maincontentborder {
border: 2px solid;
padding: 5px;
// background: #dddddd;
margin-left: 216px;
//Given width=500px.
//Right-margin = 1366 - (216+500) = 1366-716 = 650px.
margin-right: 650px;
// width: 100px;
height: 700px;
overflow: scroll;
// float: center;
}
#leftcontentborder {
border: 2px solid;
padding: 5px;
// background: #dddddd;
/* border-radius: 1em;*/
margin-left:0px; /*I have added this line to adjust the left margin of the LEFT content*/
margin-right:1150px; /*I have added this line to adjust the right margin of the LEFT content*/
//Width = 1366-1150 = 216px.
height:700px;
// float: left;
position: absolute;
}
'HTML'을 공유하십시오. –
네, HTML없이 도움이되지 않습니다. –
감사합니다. 내 문제를 더 잘 이해할 수 있도록 HTML 코드를 제공해야합니다. Mr. Eranga Kapukotuwa가 제공 한 코드는 문제를 해결하는 데 도움이되었습니다. 여기에 내 HTML 코드입니다 : –