html - CSS relative div's width auto extend by absolute div -


Is it possible to get parent (status: relative) auto expands its width by its entire child? This is my JScript link:

Ideal # Container and # Full Width Width must be in the form of width.

CSS:

  # Container {Location: Relative; Border: 1 px solid green; } #broad-width, #call- width {display: table; Status: Completed; } #World Width {White Location: No-Rap; Width: 1500px; Height: 200 pixels; Border: 1px solid red; } #top-width {top: 30px; Width: 100%; Border: 1px solid blue; }   

HTML:

  & lt; Div id = "container" & gt; & Lt; Div id = "large-width" & gt; This is the wide width & lt; / Div & gt; & Lt; Div id = "full-width" & gt; This is the full width & lt; / Div & gt; & Lt; / Div & gt;   

I need to implement it by CSS, do not use javascript. Does anyone know how to do it?

Thank you very much.

You can not extend to the div div according to the condition of the child If the child's status is complete, Because the elements with full positions are removed from the flow, so their size and even other elements, including parents, are also ignored by you can use fixed size set or javascript with CSS.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -