You might want to set the padding and margin on on the parent div if you haven't already. Also, when you use absolute positioning, you need to set the top and/or left position. You don't have that in your code now. You probably don't need to use absolute position. Try taking it out and set your margins instead.