0

Regarding the following:

<div style='text-align: center'>
<div style='position: absolute; left: 50%; text-align: left'>
    <div style='position: relative; left: -50%; background-color: #cc0;'>
        ThisShouldBeDisplayedAsNormal
        <div style='overflow: hidden'>
            ButThisIWantToBeClippetAboutHereButItIsNot
        </div>
    </div>
</div>
</div>

http://jsfiddle.net/em4v0v8h/1/

I want the inner div content to be clipped to the parent. If I explicitly set a width in the inner div like width: 275px, the inner div content is clipped as desired. But is there a way to use the parent width?

squarewav
  • 383
  • 2
  • 8

0 Answers0