1 답변
-
<style> #wrap{ width : 300px; height : 100px; } #logo{ width : 50px; height : 50px; margin : 25px; background-color : black; color : white; } #logo_content{ width : 200px; height : 100px; text-align : center; line-height : 100px; } </style> <div id="warp"> <div id="logo">Na</div> <div id="logo_content">Hallo</div> </div>
이걸 말씀하시는건가요?? Text관련은 좌우 여백은 text-align 로 맞춰 주시면 되구요 상하 여백은 height와 같은 값으로 line-height 로 지정하시되, 반드시 그 값을 감싸고 있는 div {width, height} 값을 지정하여야해요
그럼 즐거운 개발 되시길 바래요 ㅎㅎ
-
(•́ ✖ •̀)
알 수 없는 사용자
-
댓글 입력