css - How generate width html element to fill rest of width window -


I will ask how to set the width of the element to fill the full width window screen without using the unit of measurement I can set CSS for (Px, pt, et).

For example, I have two div

    

some css

  # div1 {width: 200px; Height: 40px; Swim left; Limit: 1px solid black; } # Div2 {width: // Even I should set 100% to get the remaining screen of the window, // depending on the resolution. When I try to set the Ultimate Auto to the absolute / set which changes the size of my div when I put something, but except for the rest of the rest, the rest of the window width before // start. Is it possible to set javascript to // just without using it in CSS ?? Height: 40px; Swim left; Limit: 1px solid black; } << Code>   

You can display display: table and : Table-cell , but for this approach you need a cover

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -