There is only one specific instance where I have set a div width to 900 px, and it is located further up the DOM within a div called #Ba
. This is where the width is being derived from.
My intention is for it to simply take on the width of its containing elements. The div in question is named #mi_control
.
This inheritance extends throughout most of my DOM tree, so I will share the element along with its children.
<div id='mi_control' class='radius_all'>
<p id='mi_cover_l' class='menu_bottom small_dark'>Foo © </p>
<p id='mi_about_l' class='menu_bottom small_dark'>About</p>
<p id='mi_privacy_l' class='menu_bottom small_dark'>Privacy</p>
<p id='mi_team_l' class='menu_bottom small_dark'>Contact</p>
<p id='mi_arc_l' class='menu_bottom small_dark'>Developers</p>
</div>
I am aiming for mi_control
to dynamically adjust its width based on its child elements.
While one potential solution has been suggested, I am uncertain about its relevance - http://www.quirksmode.org/css/clearing.html.