css - how to make three inside divs the same height? -


I have a container div # content, in which three divs are now, how can I make sure that the three inside Divs have the same height? Of course, I hope the height of each division can be expanded according to its content. For example: Whatever I have tried here

  & amp ;;; Doctype html public "- // w3c // dtd html 4.0 transitional // en" & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Title & gt; & Lt; / Title & gt; & Lt; Style type = "text / css" & gt; #Content {Background color: #DDDDD, width: 100%; Overflow: automatic, clear: both: height: 100%;} # color 1 {background color: yellow; Width: 10%; Float: left; Height: 100%;} # Col2 {background color: red; Width: 30%; Float: left; Height: 100%;} # cola3 {background-color: # aaaaaaa; Width: 10%; Float: left ;; Height: 100%;} & lt; / Style & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Div id = "content" & gt; & Lt; Div id = "col1" & gt; & Lt; Script language = "javascript" & gt; For (i = 0; i <1000; i ++) {document.write (i + ""); } & Lt; / Script & gt; & Lt; / Div & gt; & Lt; Div id = "col2" & gt; & Lt; Script language = "javascript" & gt; (I = 0; i & lt; 100; i ++) for {document.write (i + ""); } & Lt; / Script & gt; & Lt; / Div & gt; & Lt; Div id = "col3" & gt; & Lt; Script language = "javascript" & gt; For (i = 0; i <10; i ++) {document.write (i + ""); } & Lt; / Script & gt; & Lt; / Div & gt;  

I would like this to be done by CSS Cleaners regularly Receives suggestion, but whenever I go into a problem like this, for which & ndash; The best of my knowledge and ndash; CSS simply does not provide a solution (No, "Change your design" does not count!) ...

I recommend using the table for that part of your layout .

Tables change easily and accurately the same vertical size across all major browsers, unless CSS provides practical solutions to those problems, I continue to advise them .


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -