You need to set the border for the element (in my case, the TEST text) to its length, not the length of the parent.
<div id="topMenu"> <div class="firstTopMenuItem">TEST</div> </div> #topMenu { height: 80px; margin: 0 auto; background-color: #fff; width: 980px; min-width: 980px; border: 1px solid #f00; } .firstTopMenuItem { width: auto; font-family: Tahoma; font-size: 15px; color: #000; border: 1px solid #000; margin-left: 15px; margin-top: 25px; } Screenshot: http://clip2net.com/clip/m0/a8ff2-clip-4kb.png?nocache=1