테스트 사이트 - 개발 중인 베타 버전입니다

css 퍼블리싱 질문 드립니다. 채택완료

승승이 4년 전 조회 3,242

li로 화면 분할을 작업했습니다.

좌측에 큰박스 오른편데 작은박스 두개, 아랫쪽에 작은박스 세개

레이아웃작업을 했는데요..

 

큰화면 바로 아래에 있는 두개의 작은 박스가 브라우져 세로 크기에 따라 정상적으로 보였다가, 아랫쪽으로 숨었다가 합니다.

 

이유가 뭔지..놓친게 뭔지..답변 부탁드립니다.

아래는 작업한 소스코드 입니다.

 

 

 

<html>
<body>

<style>
* { box-sizing: border-box;}
html, body, ul, li { height:100%; padding:0; margin:0; list-style:none; overflow-y:hidden; overflow-x:hidden;}
ul { height:100%;}
ul li { position:relative; border:#000 solid 1px; background:#eee; height:33.33%; width:33.33%; float:left;}
ul li:nth-child(1) { height:66.66%; width:66.66%; float:left;}
</style>

<ul>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
</ul>

</body>
</html>

댓글을 작성하려면 로그인이 필요합니다.

답변 1개

채택된 답변
+20 포인트
Z
4년 전

</p>

<p><style>

* { box-sizing: border-box;}

html, body, ul, li { height:100%; padding:0; margin:0; list-style:none; overflow-y:hidden; overflow-x:hidden;}

ul { height:100%;}

ul li { position:relative; border:#000 solid 1px; background:#eee; height:33.33%; width:33.33%; float:right;}

ul li:nth-child(1) { height:66.66%; width:66.66%; float:left;}

</style></p>

<p>

 

ul li 의 float:left를 float:right로 변경하였습니다.

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인