> <div class="customApp">
> misc code
> </div>
>
> This is the default case where I need the "customApp" div to be 250px.
Jono: So, in the "default" situation, use CSS to make the "misc code" area
250px wide instead of making the "customApp" div 250px. This way,
"customApp" will still be 250px because the "misc code"is 250px wide.
>
> <div class="customApp">
> <div class="navigationPortlet">
> misc code
> </div>
> </div>
>
> This is the special case where I need the "customApp" div to be 170px
> because the "navigationPortlet" div won't fill the full 250px space. So,
> I can't use the child div to force the parent div to be wider ... I
> actually need to use the inner div to force the parent div to become
> narrower. Thus the problem.
Jono: In the "special" situation, use CSS to make the "navigationPortlet"
div 170px wide and "customApp" will then also be 170px wide since both are
floated causing the previously mentioned shrink wrapping of the two divs.
In your case, if you can, try not to apply a width to "customApp" at all.
Let the width of "customApp" be decided by what it contains.
One last idea is to - if you can? - apply an ID to the body tag of each
page, then:
body#default .customApp {
width: 250px;
}
body#special .customApp {
width: 170px;
}
You said you could not change the code, but adding an ID to the body tag
may be allowed if you're lucky?
Aside form these two ideas, you appear to be out of luck as far as finding
a easy solution goes.
--
Jono Young
Designer | Developer | Illustrator
Charleston Web Solutions
Bringing Higher Standards to the Lowcountry
http://www.charlestonwebsolutions.com
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/