``` /*h1,p,img태그에 배경색 넣을경우 태그 자체가 블록으로 지정되어 있어서 공백란에 배경색이 안들어가는데 해결하는 방법 없나요??*/ <!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <title>테이블 태그</title> <style> h1,p,img { background-color : gray; } </style> </head> <body> <h1>JSP스터디 멤버</h1> <p>2017년 새해를 맞이하여 새롭게 시작한 JSP 스터디 !! 새출발을 함께할 멤버를 소개합니다.~~</p> <img src="https://encrypted-tbn2.gstatic.com/images?q=tbn: ANd9GcSvuoFphJczZ_UxOV_WIkM78guSC4ujCXtGmjjQgwwcc32TZuFPjQ" width="100"> <table> <tr class="name"> <td><b>이름</b> &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;</td> <td><b>지원동기</b></td> </tr> <tr> <td>박세홍 &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;</td> <td>JSP 수업을 직접 만들어 보고 싶어서~</td> </tr> <tr> <td>백동규 &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;</td> <td>스터디 참석하면 야근 땡땡이 칠 수 있어서~</td> </tr> <tr> <td>김민선 &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;</td> <td>이직 준비를 위해서</td> </tr> <tr> <td>엄지 &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;</td> <td>방학기간을 알차게 보내고 싶어서</td> </tr> </table> </body> </html> ```
# 배경색 바꾸기와 패딩속성 CSS의 박스모델의해 배경색은 contents와 padding영역 내부에 적용되게 됩니다. ![](https://www.lighthouselabs.ca/html500ebook/boxmodel-1.png) 따라서 배경색 영역을 넓히려면, padding 속성값을 늘려줘보세요 ```css <style> h1, p, img { padding: 20px; background-color: grey; } </style> ```