How to create rectangular box by using only html . I used <div style= but box are not align as per image. Please send me codes. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to create rectangular box by using only html . I used <div style= but box are not align as per image. Please send me codes.

Like This : https://s1.postimg.org/139cbv0lu7/IMG_20171030_000556.jpg

29th Oct 2017, 7:11 PM
HighFlyer
HighFlyer - avatar
3 Answers
+ 15
<div style=float:left>Box 1</div> <div style=float:right>Box 2</div><br> <span>Another Box...</span> <style> div { width:30%; height:20vh; border:2px solid green; } span { border:1px solid red; } body * { margin:5%; } </style>
29th Oct 2017, 7:19 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 4
Ok, you have now deleted 3 duplicates (maybe more: I've not necessarly seen all): please don't repost this question ^^
29th Oct 2017, 8:29 PM
visph
visph - avatar
+ 3
It's at least the third post about your homework: this is near to spamming ^^
29th Oct 2017, 8:05 PM
visph
visph - avatar