+ 2
How to create a Two Column layout using HTML and CSS? (Solved)
I want to bring two elements in the same line, one of which will be floating on the left and the other one on the right.
2 Respostas
+ 4
Like this ?
<head>
<title>Page Title</title>
<style>
body {
display:flex;
justify-content:space-between;
}
div{
height:100px;
width:100px;
background-color:red;
}
</style>
</head>
<body>
<div></div>
<div></div>
</body>
+ 2
Flexbox is good modern and fully supported option. Its easy, a 10min videotutorial will help u understand the code provided