3 Replies Latest reply: Mar 2, 2013 10:53 AM by Nancy O. RSS

    How to take the default 100% width out of a div..?

    jyeager11 Community Member

      Could someone remind me what property needs to be applied on a div for it to wrap tightly around its contents (as opposed to defaulting to width:100%)?

       

      In other words, if the largest item it contains is 500px wide, then so's the parent div. But I want this to be dynamic, I don't want to have to specify 500px both on the content and the container.