커뮤니티
포인트
로딩중
쿠폰
내 강의실
국비 신청 내역
수강권
증명서
숙제 피드백
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
디스플레이 플렉스가 안먹습니다ㅠ
나만의 프로필 링크 페이지 만들기
1주차
북마크
권*희
댓글
3
추천
0
조회수
24
조회수
24
답변 완료


첫번째 디스플레이 플렉스는 작동을 했는데

똑같은 것을 그대로 복사해서 버튼 안의 글자들 가운데 정렬을 시키려는데

display: flex;

flex-direction: column;

justify-content: center;

align-items: center;

여기서 :(클론)들이 다 빨간 물결 밑줄이 그어지면서 버튼 속 글자들이 가운데로 안 오네요ㅠ






작성한 코드 및 에러 메세지

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8" />

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<meta property="og:title" content="Iso - profile" />

<meta property="og:description" content="Welcome" />

<meta property="og:image" content="공유할 이미지" />

<title>Iso - profile</title>

<style>

body {

background-color: #44398A;

}

.profile {

width: 100px;

height: 100px;

border-radius: 100%;


border : 2px solid white;


background-image: url('윤.png');

background-position: center;

background-size: cover;

}

.main{

color: white;

font-size: 20px;

margin-top: 30px;

margin-bottom: 10px;

}

.sub{

color: white;

font-size: 14px;

margin-top: 0px;

margin-bottom: ;

}

.wrap {

width: 300px;

margin: 30px auto 0px auto;

display: flex;

flex-direction: column;

justify-content: center;

align-items: center;

}

.wrap > a {

width: 300px;

height: 50px;


background-color: white;

border-radius: 8px;


margin-bottom: 10px;


font-size: 14px;

font-weight: bold;

color:#44398A


display: flex;

flex-direction: column;

justify-content: center;

align-items: center;

}



</style>

</head>

<body>

<div class="wrap">

<div class="profile"></div>

<h1 class="main">Iso</h1>

<p class="sub">I don't know too</p>

<a target="_blank" href="https://spartacodingclub.kr/">스파르타코딩클럽</a>

<a target="_blank" href="https://hanghae99.spartacodingclub.kr/">항해99</a>

<a target="_blank" href="https://chang.spartacodingclub.kr/">창업 부트캠프 창</a>

<a target="_blank" href="https://ddingdong.spartacodingclub.kr/">띵동코딩</a>

</div>

</body>

</html>

오류 발생 시, 작성한 코드 전체와 에러 메시지를 첨부해 주세요.

Tip 1) </> 아이콘을 눌러 코드박스를 만들어 보세요.

Tip 2) Ctrl+A(맥의 경우 Command+A) 단축키로 코드를 한 번에 선택할 수 있어요!




취소
 공유
취소
댓글 0
댓글 알림
나의얼굴