div와 ul 에 background-imag
Posted: 2007 01 19 18:02 46
아래와 같은 코드를 이용해 둥근 이미지 배경을 만들고자 합니다.
html inline style일때는 잘 적용이 되는데 저렇게 css 선언쪽으로 옮겨 놓으면 적용이 안됩니다. 뭐가 잘못된것인지 잘 모르겠습니다.
Code: Select all
// css
orderListNotice {
background: url("bgleft.gif") no-repeat top left;
}
orderListNoticeList {
background: url("bgright.gif") no-repeat top right;
}
// html
<div>
<ul id="orderListNoticeList">
<li>공지사항1</li>
<li>공지사항2</li>
<li>공지사항3</li>
<li>공지사항4</li>
</ul>
</div>