일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 공변성
- Jest
- CORS
- ESlint
- autosize
- useAppDispatch
- webpack
- 태그된 유니온
- TS
- 이분 검색
- tailwind
- SSR
- React
- 리터럴 타입
- Cypress
- 반공변성
- CI/CD
- 인터섹션
- dfs
- async/await
- recoil
- map
- app router
- 무한 스크롤
- 타입 좁히기
- RTK Query
- 호이스팅
- Promise
- 투포인터
- 결정 알고리즘
Archives
- Today
- Total
짧은코딩
CSS-사진 크기 조절 본문
반응형
<div class="container1">
<div class="row">
<div class="col-md-4">
<div class="card" style="width: 100%;">
<img src="https://img.seoul.co.kr/img/upload/2015/07/17/SSI_20150717173042_V.jpg" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card" style="width: 100%;">
<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTEfEkcmS4iktr-WhCOq_8QfD96mUB-01jnQA&usqp=CAU" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card" style="width: 100%;">
<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR4IjJ78I527tazKwZwJQbVhnPhqfkB8SD8dA&usqp=CAU" class="card-img-top" alt="...">
<div class="card-body">
<h5 class="card-title">Card title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
<a href="#" class="btn btn-primary">Go somewhere</a>
</div>
</div>
</div>
</div>
</div>
이 코드에서 사진의 크기를 통일 시키려고 했다.
-CSS
img {
width : 50%;
height: 40vh;
}
이렇게 하여 가로와 세로를 맞춰줬다.
반응형
'HTML, CSS' 카테고리의 다른 글
드림코딩-반응형 헤더 정리(2, 작은 화면) (0) | 2022.05.14 |
---|---|
드림코딩-반응형 헤더 정리(1, 큰 화면) (0) | 2022.05.13 |
부트스트랩 사용법(2) (0) | 2022.05.06 |
부트스트랩 사용법(1) (1) | 2022.05.05 |
CSS-반응형 웹 (0) | 2022.05.04 |
Comments