Define a two column layout using flexbox ?

Answer Posted / hrpynux@gmail.com

To create a two-column layout, first we create a <div> element with property display: flex, it makes that a div flexbox and then add flex-direction: row, to make the layout column-wise. Then add the required div inside the above div with require width and they all will come as columns.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of pc measurement unit?

315


What is difference between css3 and css4?

297


What is the current css version?

290


Which set of definitions, html attributes or css properties, take precedence?

319


How do you use span?

272






What is a flex item?

281


What is id selector?

330


Explain css3 animations?

299


What are the 4 areas of the box model?

282


What is css attr() funtion?

330


What are css box model elements?

292


What is difference between html and css?

280


Explain how can you integrate CSS file to your webpage?

313


What are the advantages / disadvantages of various style methods?

281


What is a css reset?

235