html - How to adjust alignment of 3 columns in PHP with the help of CSS? -


I need to display 3 columns in the same alignment: col1 col2 and col3 in my dynamic website. Col3 does not appear on the same line of col1 and col2. It only appears below it, it should be displayed on the same alignment as col1 and col2. I can adjust this by applying the margin-top option but this is not the right solution. Since the contents of these columns are removed from the database, the height is not defined. The content of Col1 and col2 pushing col3, so, I could not manage its alignment. How can this be solved?

  #content {width: 900px; Margins: Auto; } #col {width: 600px; Swim left; } # Cola1 {width: 300px; Swim left; } # Cola2 {width: 300px; float right; } # Coles 3 {width: 300px; float right; }  
  & lt; Div id = "content" & gt; & Lt; Div id = "col" & gt; & Lt; Div id = "col1" & gt; Color 1 text ... & lt; / Div & gt; & Lt; Div id = "col2" & gt; The text of call 2 ... & lt; / Div & gt; & Lt; / Div & gt; & Lt; Div id = "col3" & gt; Color 3 text ... & lt; / Div & gt; & Lt; / Div & gt;  


Comments