1편에서 html의 틀을 만든 뒤 이를 CSS를 통해 실제 사용하는 웹사이트처럼 꾸미기!
타이틀
부분과 Username
, Message
폰트 크기와 색 조절을 하고 공백을 설정한 뒤 배경색을 변경했다.#greeting {
font-size: 4em;
font-family: sans-serif;
font-weight: bold;
border-radius: 1em;
color: white;
background-color: white;
text-shadow: 0 0 5px #333;
text-align: center;
margin: 0.5em;
padding: 0.5em;
}
#userInput {
display: flex;
flex-direction: column;
margin : 0.4rem;
padding : 0.8rem;
background-color: #18BFE6;
}
.Input {
margin : 0.2rem;
color:white;
font-size: 1.2rem;
}
.nameText {
width: 12rem;
height: 2rem;
margin: 0.2rem;
}
#userInput > textarea {
width: 60rem;
height: 4rem;
margin: 0.2rem;
.listtop {
background-color: #1B539D;
display: flex;
align-items: center;
margin : 0.4rem;
margin-bottom: 0rem;
padding : 0.8rem;
}
.listtop > button {
margin: 0.2rem;
width: 12rem;
height: 3rem;
background-color: white;
}
.listtop span {
font-size: 0.8rem;
}
button > img {
width: 1.2rem;
}
#twitListContents {
background-color: #EEEEEE;
margin : 0.4rem;
margin-top: 0rem;
padding : 0.8rem;
}
.twitListData {
display: flex;
justify-content: space-between;
border-bottom: 1px gray solid;
padding: 0.8rem 1rem 0.4rem 1rem;
}
.twitName {
font-size: 1.3rem;
font-weight: 500;
}
.twitData {
opacity: 0.6;
}
.twitdate {
opacity: 0.6;
}
.twitName:hover {
color:#18BFE6;
}