.tickercontainer { /* the outer div with the black border */border: 1px solid #CCC;background: #fff; width: 990px; height: 29px; margin: auto; padding: 0overflow: hidden; }.tickercontainer .mask { /* that serves as a mask. so you get a sort of padding both left and right */position: relative;left: 10px;top: 8px;width: 970px;overflow: hidden;}ul.newsticker { /* that's your list */position: relative;left: 950px;font: bold 12px Verdana;list-style-type: none;margin: 0;padding: 0;}ul.newsticker li {float: left; /* important: display inline gives incorrect results when you check for elem's width */margin: 0 50px 0 0;padding: 0;background: #fff;color:#0066CC;}ul.newsticker a {color:#66CC00;white-space: nowrap;padding: 0;font: bold 12px Verdana;}