동그라미 중앙에 문자를 넣고 싶은데... 검색한거로 따라해봐도 안 됩니다 ㅠ
스타일
.rds{ float:left;
text-align:center;
margin:0 auto;
background-color: rgb(100,100,100);
width: 100px; height: 100px;
border-radius: 50px
}
.rds div{display:inline-block; text-align:center; line-height:100px}
바디태그
<div class="rds">
<div>
ㅅㅂ
</div>
</div>
왜 안 되지? ㅠㅠ
.rds{display: table-cell; text-align: center;}
아니; 새로고침 하니까 갑자기 된다ㅅㅂ; 위에님도 감사해여
위에껀 쓰지마세여 ㅎㅎ
센터링의 가장 마지막 수단임. 알면 써도 돼
불가능한거 되게 해야 할때....
그럼 부모에 display : table이 있어야 해요 ㅎㅎ..
이거 대부분 브라우저의 구현상 부모없이도 돌아가여.. 웹디자인이 얼마나 근본없는 개판인지 알수있져...
의외로 호환성 IE까지 챙겨줌
웹 프론트엔드할때 새로고침은 ctrl+shift+R로 해 웬만하면