<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>무제 문서</title>
<style type="text/css">
body {
margin:0;
width:100%;
background-image: url();
}
.main_wrap{
width:100%;
background-color:red;
valign:top;
height:300px;
}
.main_wrap .inner{
width:50%;
float:center;
height:100px;
background-color:yellow;
valign:top;
}
-->
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- 메인 -->
<div class="main_wrap">
<div class="inner">
sorry.
</div>
</div>
</body>
</html>
-------------------------------------
노란색박스 float:center; 해주는데도 가운데로 안와요..
그리고
.main_wrap .inner{
는
.main_wrap {}
.inner{ }
분리해도 상관없나요? 어떤차이가 있는지요?
댓글 2개
9년 전
float:center ----> margin:0 auto; 로 한번 해보시고요
.main_wrap .inner{ 이거는 main_wrap 안에 있는 inner 만 적용 될거고요
그냥 .inner 는 inner라는 클래스에 다 적용될 거고요
맞겠죠?
.main_wrap .inner{ 이거는 main_wrap 안에 있는 inner 만 적용 될거고요
그냥 .inner 는 inner라는 클래스에 다 적용될 거고요
맞겠죠?
9년 전
감사합니다~~~~~!!
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 30 |
아우겐나이스
|
21년 전 | 4050 | |
| 29 |
아우겐나이스
|
21년 전 | 4438 | |
| 28 |
아우겐나이스
|
21년 전 | 3467 | |
| 27 | 21년 전 | 5835 | ||
| 26 | 21년 전 | 3116 | ||
| 25 | 21년 전 | 6087 | ||
| 24 | 18년 전 | 3649 | ||
| 23 | 21년 전 | 3640 | ||
| 22 | 21년 전 | 4247 | ||
| 21 | 21년 전 | 3818 | ||
| 20 | 21년 전 | 4225 | ||
| 19 | 21년 전 | 6680 | ||
| 18 | 21년 전 | 4734 | ||
| 17 | 21년 전 | 6992 | ||
| 16 | 21년 전 | 4170 | ||
| 15 | 21년 전 | 2636 | ||
| 14 | 21년 전 | 4978 | ||
| 13 | 21년 전 | 3401 | ||
| 12 |
Recluse
|
21년 전 | 3883 | |
| 11 |
아우겐나이스
|
21년 전 | 3569 | |
| 10 |
Recluse
|
21년 전 | 3393 | |
| 9 | 21년 전 | 3996 | ||
| 8 | 21년 전 | 5174 | ||
| 7 | 21년 전 | 4762 | ||
| 6 | 21년 전 | 5688 | ||
| 5 | 21년 전 | 4117 | ||
| 4 | 21년 전 | 4844 | ||
| 3 | 21년 전 | 4742 | ||
| 2 | 21년 전 | 3248 | ||
| 1 | 22년 전 | 4343 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기