How can I code a div having width options?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I code a div having width options??

is there any tag for a div having width and height options???

30th Jan 2017, 4:13 AM
Imad Khan
Imad Khan - avatar
2 Answers
+ 2
Use CSS 'width' and 'height' properties: <div style="width:100px; height:100px; background:red;"></div>
30th Jan 2017, 4:41 AM
visph
visph - avatar
0
use CSS properties width and height like <div style="width:100px; height:100px;"></div> or you can use CSS properties position like: <div style="position: absolute;top: 150px;right: 50px;left: 50px;"></div>
31st Jan 2017, 4:51 AM
abdullah Suleiman Saud Al-Hadrami