/* style.css */ body { font-family: Arial, sans-serif; } #News-content-2 { display: grid; grid-template-columns: 1fr 8fr 1fr; grid-template-rows: 1fr 8fr 1fr; width: 100%; } #New-center-2 { grid-area: 2/2/3/3; } .News_line { border: 1px solid #eee; width: 100%; margin: 1vw 0 2vw 0; } #posts-container { display: flex; flex-direction: row; height: 35vw; } .post-item img{ width: 100%; height: 20vw; } .post-item a { width: 100%; height: 20vw; } .post-item h3 { font-size: 2vw; } .post-item p { font-size: 1.5vw; margin: 0; } .post-item { display: flex; justify-content: start; align-items: center; flex-direction: column; border: 1px solid #eee; margin: 0 1vw 0 0; /* 각 게시글 아이템 주변에 마진 추가 */ flex: 1; /* flex 아이템들이 컨테이너 내에서 유연하게 크기 조정 */ min-width: 30vw; /* 최소 너비 설정 */ height: 100%; } #pagination { display: flex; justify-content: center; } .page-item { cursor: pointer; padding: 5px 10px; border: 0px solid #ddd; margin-right: 5px; background-color: white; } .page-item.active { background-color: #51e6ef; color: white; } .page-item:hover { background-color: #ddd; } #search-form { height: 3.5vw; display: flex; align-items: start; justify-content: space-between; width: 100%; margin-bottom: 2vw; } #search-form select,input{ height: 100%; border: 1px solid #ccc; border-radius: 0.5vw; padding: 0 0 0 1px; font-size: 1.1vw; color: #ddd; } #search-form input::placeholder{ color: #ddd; font-size: 1.1vw; } #search-form input { height: 96%; } #search-form select { width: 20vw; } #search-form input { width: 40vw; font-size: 1.5vw; } #search-form button { height: 100%; width: 8vw; font-size: 1.2vw; font-weight: bold; border-radius: 0.5vw; padding: 0; } #New-button-search { color: black; border: 1px solid black; background-color: white; } #New-button-write { color: white; background-color: #51e6ef; border: 0px solid black; }