inflearn logo
강의

講義

知識共有

非専門家のための真の入門オールインワン開発ブートキャンプ

[그랩마켓] ウェブ画面を実装する - 3

안녕하세요 똑같이 한거 같은데 확인 해보니 달라서 질문 글 올립니다 ㅜㅜ

167

Kay potato

投稿した質問数 5

1

Css 부분
* {
    margin0;
    padding0;
}
#header {
    height64px;
    displayflex;
    justify-contentcenter;
    border-bottom1px solid black;
}
#body {
    height100%;
    width1024px;
    margin0 auto/*부모로 부터 중앙 정렬*/
    padding-bottom24px;
}
#footer {
    height200px;
    background-colorred;
}
#banner {
    height300px;
    background-coloryellow;
}

#header-area {
    width1024px;
    height100%;
    /* margin: 0 auto; */
    displayflex;
    align-itemscenter;
}
#header-area > img {
    width128px;
    height36px;
}
#banner > img {
    width100%;
    height300px;
}
#body > h1 {
    margin-top16px;
}
#product-list{
    displayflex;
    flex-wrapwrap;
    margin-top12px;
}
.product-card {
    width180px;
    height300px;
    background-colorgray;
    margin-right12px;
    margin-bottom12px;
}
Html 부분
<h1>판매되는 상품들</h1>
        <div id="product-list">
            <div class="product-card"></div>
            <div class="product-card"></div>
            <div class="product-card"></div>
            <div class="product-card"></div>
            <div class="product-card"></div>
            <div class="product-card"></div>
        </div>
    </div>
    <div id="footer"></div>
확인을 해 보니 밑의 결과 처럼 나오는데 원래 이런건지 맥북이 아니라서 이러는건지 도통 모르겠어서..

react nodejs HTML/CSS react-native express javascript 머신러닝 배워볼래요? tensorflow

回答 1

1

Kay potato

아; 단순하게 바디에 height 값을 좀 더 주니 괜찮아지는군요!

0

grab

넵 뒷 부분에 body의 height를 100vh로 두는 내용이 나옵니다 :)

<div id="banner">배너 이미지</div> 관련 질문

0

8

1

[해결]그랩님 답변 주세요.

0

197

2

그랩님의 답변을 기다립니다/102강 전반적인 에러

0

170

2

[그랩님께]101강 안드로이드 에러들(Key prop)해결방법 궁금합니다.

0

140

2

[재질문][그랩님 답변 부탁드립니다]101강

0

166

2

[그랩님 답변 부탁드립니다]101강 Axios 에러와 502 Bad Gateway 질문

0

123

2

Ngrok 설치 후 forwarding Url 에러

0

153

2

[그랩님께,Ngrok 악성코드 인식 해결방법]질문 드립니다.

0

260

2

Ngrok 설치 후 forwarding Url로 연결 불가

0

159

1

그랩님,[꼭] 답변 부탁드립니다.

0

79

1

[꼭][[꼭] 그랩님, 답변 부탁드립니다], Failed to load resource: the server responded with a status of 404 (Not Found) 상품 상세 페이지 질문입니다.

0

164

1

6강/7강 수업

0

58

1

그랩님, 상품 상세 페이지 에러와 의문점 질문드립니다.

0

106

2

그랩님, 해결되지 않은 에러 메시지 [꼭] 답변 부탁 드립니다.

0

150

2

[재 질문]Cannot read properties of undefined (reading 'map') TypeError: Cannot read properties of undefined (reading 'map') 에러 해결 어떻게 하나요?

0

96

1

Cannot read properties of undefined (reading 'map') TypeError: Cannot read properties of undefined (reading 'map') 에러 해결 어떻게 하나요?

0

137

2

일반적인 css 꾸미기에서 width와 height의 값?

0

100

2

Windows에서의 업로드 후 홈화면 상품이미지 오류 해결방법

0

206

1

그랩마켓 웹화면 구현하기 -2 질문입니다.

0

128

1

react에 반영이 되지 않습니다.

0

254

1

터미널 npm install -g create-react-app 작성 후 오류

0

430

1

create-react-app my app 실행 시 에러

0

358

2

포스트맨 질문

0

106

1

<꼭 답변 부탁 드립니다>그랩선생님, [컴포넌트 사용하기] 강의에서 질문 있습니다.

0

272

2