css 퍼블리싱 질문 드립니다.

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!
css 퍼블리싱 질문 드립니다.

QA

css 퍼블리싱 질문 드립니다.

답변 1

본문

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


<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>

 

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

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 4,576
© SIRSOFT
현재 페이지 제일 처음으로