This content has been marked as final.
Show 3 replies
-
1. Re: How to take the default 100% width out of a div..?
Sudarshan Thiagarajan Mar 1, 2013 9:35 PM (in response to jyeager11)Can we see a weblink to your page so we can advice on what needs to change?
-
2. Re: How to take the default 100% width out of a div..?
jyeager11 Mar 2, 2013 7:14 AM (in response to Sudarshan Thiagarajan)I'm really just looking for the answer to the question asked, thanks.
Widths by default are 100%. I know there's a property that removes that behavior and makes the div dynamically shrink-wrap around its contents like a table, but can't recall what it is. I thought it might be display:inline, but that did not produce the intended result when I tried it.
-
3. Re: How to take the default 100% width out of a div..?
Nancy O. Mar 2, 2013 10:53 AM (in response to jyeager11).divName {
display: inline-block;
border: 1px dotted red;
}
<div class="divName"> ONE </div>
<div class="divName"> ONE, TWO, THREE, FOUR, FIVE </div>
<div class="divName"> ONE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE, TEN </div>
Nancy O.



