안녕하세요! 반응형 3단가로배열 모바일에서는 세로 진열
-
게시물 수정 , 삭제는 로그인 필요
안녕하세요! 반응형 3단가로배열 모바일에서는 세로 진열
부트스트랩 같은 그리드 시스템이 필요 없어면
class="col-lg-4 col-md-6 col-sm-12 text-center" 부분은 삭제하세요.
부트스트랩이 있어면 css 가 코드가 충돌해서 재대로 적용이 안됩니다.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>test</title>
<style>
.container{
text-align: center;
display: flex;
justify-content: space-around;
}
.grid-image {
display: flex; flex-wrap: wrap; align-items: flex-start; margin: 30px 0;
}
.grid-image img {
width: calc(33.333% - 10px); margin: 0 15px 15px 0;
}
.grid-image img:nth-of-type(3n),
.grid-image img:last-child {
margin-right: 0;
}
@media screen and (max-width:750px) {
.container{
flex-wrap:wrap;
}
.container .row{
width:100%;
flex-wrap:wrap;
}
}
@media screen and (max-width:640px) {
.grid-image img {
width: calc(100% - 15px);
}
}
@media screen and (max-width:480px) {
.grid-image img: nth-of-type(2n) {
margin-right: 0;
}
.grid-image img:nth-of-type(3n) {
margin-right: 15px;
}
}
</style>
</head>
<body>
<section style='color: rgb(0, 0, 0); font-family: "Malgun Gothic"; font-size: 12px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;'>
<div class="container">
<div class="row" style="text-align: center;">
<h3 style="display: block; margin: 0px; line-height: 1.5; text-align: center;font-size: 1.5em;">제목1</h3>
<p style="display: block; font-size: 1.17em; margin: 0.83em 0px; font-weight: bolder; text-align: center;">텍스트1</p>
<a href="버튼링크1"><div class="col-lg-4 col-md-6 col-sm-12 text-center" style="text-align: center;">
<img data-fr-image-pasted="true" class="rounded-circle fr-fic fr-dii" alt="100x50" src="버튼이미지.jpg" data-holder-rendered="true" style="position: relative; max-width: 100%; display: inline-block; float: none; vertical-align: bottom; margin-left: 0px; margin-right: 0px; width: 100px; height: 50px;"></a>
</div>
</div>
<div class="row" style="text-align: center;">
<h3 style="display: block; margin: 0px; line-height: 1.5; text-align: center;font-size: 1.5em;">제목2</h3>
<p style="display: block; font-size: 1.17em; margin: 0.83em 0px; font-weight: bolder; text-align: center;">텍스트2</p>
<a href="버튼링크2"><div class="col-lg-4 col-md-6 col-sm-12 text-center" style="text-align: center;">
<img data-fr-image-pasted="true" class="rounded-circle fr-fic fr-dii" alt="100x50" src="버튼이미지.jpg" data-holder-rendered="true" style="position: relative; max-width: 100%; display: inline-block; float: none; vertical-align: bottom; margin-left: 0px; margin-right: 0px; width: 100px; height: 50px;"></a>
</div>
</div>
<div class="row" style="text-align: center;">
<h3 style="display: block; margin: 0px; line-height: 1.5; text-align: center;font-size: 1.5em;">제목3</h3>
<p style="display: block; font-size: 1.17em; margin: 0.83em 0px; font-weight: bolder; text-align: center;">텍스트3</p>
<a href="버튼링크3"><div class="col-lg-4 col-md-6 col-sm-12 text-center" style="text-align: center;">
<img data-fr-image-pasted="true" class="rounded-circle fr-fic fr-dii" alt="100x50" src="버튼이미지.jpg" data-holder-rendered="true" style="position: relative; max-width: 100%; display: inline-block; float: none; vertical-align: bottom; margin-left: 0px; margin-right: 0px; width: 100px; height: 50px;"></a>
</div>
</div>
</div>
</section>
<div id="wrapper" style="text-align: center;">
<main id="content">
<div class="section-heading">
<br>
</div>
</main>
</div>
</body>
</html>
안녕하세요, 반응형 3단 가로 배열에 대한 질문에 대한 답변입니다.
CSS 미디어 쿼리를 이용하면 사용자가 뷰포트 또는 기기 크기에 따라 CSS를 변경할 수 있어 반응형 웹 디자인을 구현할 수 있습니다.
3단 가로 배열을 하려면 그리드나 플렉스박스를 이용하는 것이 일반적입니다.
모바일에서는 세로 배열을 하려면 미디어 쿼리에서 특정 뷰포트를 기준으로 콘텐츠를 재배열하도록 설정하면 됩니다.
그리고 현재 웹 트렌드는 반응형 웹으로 이동하고 있습니다.
반응형 웹은 디바이스의 화면 크기와 해상도에 따라 자동으로 화면을 조정해 사용자에게 최적화된 화면을 제공하는 기술입니다.
이를 통해 하나의 홈페이지로 다양한 디바이스에서의 효과적인 웹사이트 구축이 가능해집니다.
홈페이지 제작 업체를 찾으시는 분들에게는 실제 홈페이지 제작 포트폴리오와 비용을 공개한 업체, 유지보수 A/S 내역을 실시간으로 공개하고 있는 업체를 추천합니다.
그리고 홈페이지 제작을 계획하시는 분들에게 한 가지 팁을 드리자면, 처음부터 메뉴 구성(사이트 맵)을 확실히 정해 두는 것이 좋습니다.
이는 전체적인 웹사이트의 구조를 이해하는 데 도움이 되고, 그에 따른 디자인과 기능 개발을 보다 효율적으로 할 수 있기 때문입니다.
제가 추천드릴만한 홈페이지제작 업체는 "디웹스"입니다.
2015년 설립해서 올해로 10년차를 맞이한 홈페이지제작 전문 업체로, 안정적인 서비스 제공으로 많은 고객들에게 신뢰를 받고 있습니다.
다양한 클라이언트의 요구사항에 맞춘 맞춤형 서비스를 제공하며, 고객의 성공이 바로 디웹스의 성공이라는 기업 철학을 가지고 있으니 홈페이지 제작의 업체를 선택하시는데 참고해보세요..
답변이 도움이 되셨으면 좋겠네요~ 조금이나마 도움이 되셨다면 답변확정 부탁 드립니다^^.
... 때는 가로로 보여지고 모바일에서는 각각 세로로... 안녕하세요? 고양시/파주시 컴퓨터 맨투맨 방문 교육 전문... 아래로 배열해 주시면 해결될 것이라 판단됩니다. 그 밖에...
... 사이즈와 가로 세로 배열 갯수를 설정... 지금은 메인에 가로 3단 세로2줄 이미지... 메인상품 진열관리에서...
예를들어 가로 1920px 세로 1080px인 웹페이지가 있고... 안녕하세요. 소스놀이터란 이름으로 유튜브에서 강의를... 말씀하신 내용대로 구현된 반응형 웹들이 많이...
... 가로폭을 화면 최대크기에 맞추고 싶습니다. (세로는 비율에 따라 따라가는 형식) PC : https://study-life-easy.tistory.com/1 모바일...
안녕하세요 인터넷 쇼핑몰을 열기 위해 한 업체에 홈페이지... 홈페이지를 모바일로 봤을 때 작게 보이더라도 가로로는 전체 구성이 다 보이게 하는것이 보편적입니다. 세로는...
... 핸드폰으로 멀티플렉스 광고를 하면 세로로 나와야 하는데 가로로 송출이 됩니다. 도와주세요.... 데스크톱 화면 아니고 모바일 화면 입니다.. 안녕하세요? 티스토리...
고수님들께 여쭤봅니다~ 반응형 웹기반 워드프레스라는... 모양이나, 배열 등이 상호 다르게 나타나더라구요.. 어느... 모바일용 홈페이지 특징은 가로 세로 사이즈를 안...
... 모바일 화면, 태블릿 화면, 데스크탑 화면 등 화면의 가로나 세로의 사이즈가 기기 마다 천차 만별이기 때문에, 사실상 모든 기기에서 보기 좋은 반응형을 구현하는...
안녕하세요. 얼마 못 배운 (^^) 홈페이지 초보자입니다. 다름이 아니구요. div로 3단 가로 배열을... 단 (1),(3)은 세로정렬이 가운데이고 (2)는 세로정렬이...
... 드린것처럼 반응형 웹으로 구현을 해야 문제가 해결 될거 같은데요.. 이미지맵 태그로 구현했을 때 모바일나... 크기는 가로 1919픽셀 세로 970픽셀입니다. 너무 기초가...