I’ve got a html item with a child html item inside it. The child item contains text. In the browser, if I increase the text size (zoom text only), the child item grows to contain the text, but the parent item doesn’t.
Is there a way to get the parent item to also grow?
If your child item is really inside a parent-box, this parent need to have an undefined height. Select the parent-box and click the little height-icon. The value in there should grey out and be unreachable.
Yup. I’ve drawn a css positioned html item (item1) and made it 300px high. I’ve drawn another html item inside item1. Item2 is definately inside item1. I’ve made item2 have an undefined height and added some text.
In the browser I’ve ‘zoomed text size only’ and item2 expands to fit the text. But item1, the parent item, doesn’t expand.
And more strangely, if I make item1 have an undefined height, it has a height of 0px (i.e. you can’t see it), even though it contains a child item of 300px.
A positioned child will not work for this kind of layout. You have to make the inner box an inline child if you want the size of its content to affect the size of its parent. Click once on the inner box and cut it to the clipboard. Then double-click inside the outer box and paste. You can get the same positioning or outset by adding margin to the inner box or padding to the outer box. Now if you disable its height property, the outer box will shrink-wrap around the inner box, and if the inner box’s content changes, both the inner and outer box will stretch to fit.
Walter
On Apr 26, 2012, at 5:30 PM, “DeltaDave” email@hidden wrote:
What setting have you used on the overflow content of item 1
Thanks for that. I was hoping to avoid inline items - but I can’t so I’ll have to bite the bullet.
One of my issues with inline items and FW is that I can’t control them from the master page like I can with absolute items… anyway I’m sure there is a good reason why this is…
Please excude me for even asking this … but what’s the problem with inline items? I build everything like that, and that works perfectly (for me anyway)?
The specific issue that was referred to is that master pages are difficult to use with an inline layout. Which is true.
Walter
On Apr 28, 2012, at 6:54 AM, “Richard van Heukelum” email@hidden wrote:
Please excude me for even asking this … but what’s the problem with inline items? I build everything like that, and that works perfectly (for me anyway)?