2021.07.27 CSS์‹ค์Šต(13)

hae.logยท2021๋…„ 7์›” 27์ผ

blog-cssโœ

/*  ๋„ค์ด๋ฒ„ ๋ธ”๋กœ๊ทธ */

.blog-container {
	width: 1080px;
	margin: 0 auto;
}

#blog-header .blog-header-top {
	height: 60px;
	background-color: #00c73c;
	border-bottom: 1px solid #51b036;
}

#blog-header .blog-header-top .blog-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
}


#blog-header .blog-header-top .blog-header-left {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;`
}

#blog-header .blog-header-top .blog-header-left h2 {
	font-size: 20px;
	margin-right: 20px;
}

#blog-header .blog-header-top .blog-header-left h2 a {
	color: #ffffff;
	font-weight: 700;
}

#blog-header .blog-header-top .blog-header-input-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

#blog-header .blog-header-top .blog-search-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;

	width: 325px;
	height: 40px;
	background-color: #ffffff;

	margin-right: 5px;
}

#blog-header .blog-header-top .blog-search-wrap input {
	width: calc(100% - 40px);
	height: 40px;
	background-color: #ffffff;
	border: solid 1px #4da733;

	padding: 0 15px;
}

#blog-header .blog-header-top .blog-search-wrap input:focus {
	outline: none;
}

#blog-header .blog-header-top .blog-search-wrap .btn-search {
	width: 40px;
	height: 40px;
	background-color: #28a93a;
	border: solid 1px #239e36;
}

#blog-header .blog-header-top .btn-total-search {
	width: auto;
	height: 40px;
	background-color: #28a93a;
	border: solid 1px #239e36;

	padding: 0 5px;

	line-height: 40px;
	color: #ffffff;
}

#blog-header .blog-header-top .blog-header-right {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
}

#blog-header .blog-header-top .blog-header-right .btn-login {
	display: inline-block;
	border: solid 1px #239e36;

	padding: 2px 5px;
	margin-right: 20px;

	color: #ffffff;

	font-size: 12px;
}

#blog-header .blog-header-top .blog-header-right .btn-menu {
	width: 60px;
	height: 60px;
	background-color: #00c73c;

	border-left: solid 1px #239e36;
	border-right: solid 1px #239e36;

	cursor: pointer;
}

#blog-header .blog-header-nav {
	height: 40px;
	background-color: #ffffff;
	border-bottom: solid 1px #e5e5e5;
}

#blog-header .blog-header-nav .blog-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
}

#blog-header .blog-header-nav .nav-left {


}

#blog-header .blog-header-nav .nav-left ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

#blog-header .blog-header-nav .nav-left ul li {
	height: 40px;
	margin-right: 16px;
	border-bottom: solid 2px transparent;

}

#blog-header .blog-header-nav .nav-left ul li.on {
	border-bottom: solid 2px #00AB33;
}

#blog-header .blog-header-nav .nav-left li a {
	display: block;

	width: 100%;
	height: 100%;
	line-height: 40px;

	font-size: 13px;
}

#blog-header .blog-header-nav .nav-right {

}

#blog-header .blog-header-nav .nav-right ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
}

#blog-header .blog-header-nav .nav-right li {
	width: auto;
	height: 26px;

	margin-left: 8px;
}

#blog-header .blog-header-nav .nav-right li.on a {
	background-color: #00c73c;
	border: solid 1px rgba(0, 0, 0, 0.07);
	color: #ffffff;
}

#blog-header .blog-header-nav .nav-right li a {
	display: block;
	width: 100%;
	height: 100%;
	background-color: #ffffff;
	border: 1px solid #cecece;

	line-height: 26px;
	padding: 0 10px;

	font-size: 13px;
}

.blog-main #hot-topic {
	height: 305px;
	background-color: #f5f5f6;
	padding: 20px 0 15px;
}

.blog-main #hot-topic .blog-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
}

.blog-main #hot-topic .hot-topic-left {
	position: relative;
	width: 770px;
}

.blog-main #hot-topic .hot-topic-left .topic-heading {
	display: flex;
	flex-wrap: wrap;
	align-items: center;

	margin-bottom: 11px;
}

.blog-main #hot-topic .hot-topic-left .topic-heading h3 {
	font-size: 16px;
	font-weight: 600;
	color: #e55e5e;
}

.blog-main #hot-topic .hot-topic-left .topic-heading i {
	display: block;
	width: 8px;
	height: 13px;
	background-color: grey;
	margin: 0 8px;
}

.blog-main #hot-topic .hot-topic-left .topic-heading a {
	font-size: 16px;
}

.blog-main #hot-topic .hot-topic-left .topic-lists {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
}

.blog-main #hot-topic .hot-topic-left .topic-lists li {
	position: relative;
	width: 252px;
	height: 240px;
}

.blog-main #hot-topic .hot-topic-left .topic-lists img {
	position: absolute;
	width: 100%;
	height: 100%;
}

.blog-main #hot-topic .hot-topic-left .topic-lists p {
	position: absolute;
	width: 100%;
	background-color: rgba(55, 66, 87, 0.9);

	padding: 20px 0;

	bottom: 0;

	color: #ffffff;

	text-align: center;
}

.blog-main #hot-topic .pagination-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;

	position: absolute;
	top: 0;
	right: 0;

}

.blog-main #hot-topic .pagination-wrap a {
	display: block;
	width: 20px;
	height: 20px;
	margin-left: 4px;
	border: solid 1px rgba(221, 221, 223, 0.8);
	background-color: #f6f6f7;

	color: #888;

	font-size: 12px;
	text-align: center;
	line-height: 20px;
}	


.blog-main #hot-topic .hot-topic-right {
	position: relative;
	width: 280px;
	padding-top: 30px;
}

.blog-main #hot-topic .hot-topic-right .topic-banner {
	width: 280px;
	height: 240px;
	background-color: black;
}

.blog-main #blog-main-content {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}

.blog-main #blog-main-content .blog-main-left {
	width: 770px;
}


.blog-main #blog-main-content .blog-main-right {
	width: 280px;
	height: 2000px;
	background-color: pink;
}

.blog-main #blog-main-content .blog-main-left #blog-main-notification {
	background-color: #ffffff;
	padding: 54px 0;

	text-align: center;
}

.blog-main #blog-main-content .blog-main-left #blog-main-notification p {
	font-size: 16px;
	line-height: 30px;
}

.blog-main #blog-main-content .blog-main-left #blog-article .blog-article-nav {
	background-color: #ffffff;
	border-top: solid 1px #999999;
	border-bottom: solid 1px #999999;

	padding: 10px 0;

	font-size: 14px;
}


.blog-main #blog-main-content .blog-main-left .blog-article-nav ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.blog-main #blog-main-content .blog-main-left .blog-article-nav li {
	margin-right: 22px;	
}

.blog-main #blog-main-content .blog-main-left .blog-article-nav a {
	
}






.blog-main #blog-main-content .blog-main-left .blog-article-lists {
	
}

.blog-main #blog-main-content .blog-article-lists li {
	width: 100%;
	border-bottom: solid 1px #eeeeef;

	padding: 25px 0 23px;
}

.blog-main #blog-main-content .blog-article-lists li a {
	display: block;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;

	width: 100%;
	height: 100%;
}

.blog-main #blog-main-content .blog-article-lists .blog-articl-info {
	width: 573px;
}

.blog-main #blog-main-content .blog-article-lists .blog-profile-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.blog-main #blog-main-content .blog-article-lists .blog-profile-wrap img {
	width: 32px;
	height: 32px;
	border-radius: 50%;

	margin-right: 10px;
}

.blog-main #blog-main-content .blog-article-lists .blog-profile-info {
	font-size: 14px;
}

.blog-main #blog-main-content .blog-article-lists .blog-profile-info h3 {
	font-size: 14px;
	margin-bottom: 3px;
}

.blog-main #blog-main-content .blog-article-lists .blog-profile-info p {
	font-size: 11px;
	color: #959595;
}

.blog-main #blog-main-content .blog-article-lists h2 {
	margin-top: 16px;
	font-size: 17px;
}

.blog-main #blog-main-content .blog-article-lists .paragraph {
	margin-top: 10px;
	font-size: 13px;
	color: #666666;
}

.blog-main #blog-main-content .blog-article-lists .comments {
	margin-top: 14px;
	color: #959595;
	font-size: 12px;
}

.blog-main #blog-main-content .blog-article-lists .comments span {
	margin-right: 9px;
}

.blog-main #blog-main-content .blog-article-lists .comments em {
	font-style: normal;
}

๐Ÿš€ ๊ฒฐ๊ณผ๋ฌผ

๐Ÿ” float : left

๐Ÿ’ก ์™œ flex๋ฅผ ์‚ฌ์šฉํ•˜์ง€ ์•Š๊ณ  float: left ๋ฅผ ์‚ฌ์šฉํ• ๊นŒ?

 ๐Ÿ‘‰ flex๋Š” ์ธํ„ฐ๋„ท ์ต์Šคํ”Œ๋กœ๋Ÿฌ ํ•˜์œ„๋ฒ„์ „์„ ์ง€์›ํ•˜์ง€ ์•Š์Œ
   6-9๋ฒ„์ „์€ ์ง€์›X
   ๊ทธ๋ž˜์„œ float์œผ๋กœ ๋ฐฐ์น˜์ž‘์—…ํ•จ 

๐Ÿ”ฅ https://caniuse.com/

๐Ÿ‘‰ ๋‚ด๊ฐ€ ์ ์šฉํ•œ ํšจ๊ณผ๊ฐ€ ์ง€์›๋˜๋Š”์ง€ ์•Œ๊ณ ์‹ถ์„๋•Œ ์ฝ”๋“œ์ž…๋ ฅํ•ด์„œ ๊ฒ€์ƒ‰ํ•ด๋ณด๊ธฐ

๐Ÿ”ฅ https://www.rapidtables.com/convert/color/hex-to-rgb.html

๐Ÿ‘‰ hex์ฝ”๋“œ๋ฅผ ์ž…๋ ฅํ•˜์—ฌ ์ถœ๋ ฅ๋˜๋Š” ์ƒ‰์ƒ์„ ๋ฏธ๋ฆฌ ๋ณผ์ˆ˜ ์žˆ์Œ

0๊ฐœ์˜ ๋Œ“๊ธ€