그래서 나는 잠시 동안 수정할 수없는 몇 가지 문제가 발생했습니다. 그것은 대학 과정을위한 숙제이고 나는 html 문서를 바꿀 수 없다. 오직 일반 CSS 만 적용해야합니다. 문제는 브라우저 크기를 조정할 때입니다. 오른쪽에서 콘텐츠 div가 사이드 바 div를 오버플로합니다. 내가 어떻게 고칠 수 있니? CSS div가 오버플로됩니다. (때 브라우저 크기를 조정)
.centered-content {
white-space: nowrap;
width: 75%;
min-width: 600px;
margin-left: auto;
margin-right: auto;
background-color: rgba(246,246,246,0.9);
border: 1px solid blue;
overflow:hidden;
}
.main-container {
position: relative;
float: right;
border: 2px solid red;
display: inline-block;
width: 85%;
margin: auto;
white-space: normal; /*Prevents child elements from inheriting nowrap.*/
}
#menu-add {
position: absolute;
width:15%;
min-width: 180px;
height: 100%;
border: 1px solid green;
display: inline-block;
}
: 주석 https://i.stack.imgur.com/O5zGc.png
HTML의 DOC.
html을 공유 할 수 있습니까? – Zac
https://pastebin.com/DVVWkmeD – revengeance