What if I set width for block element? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What if I set width for block element?

5th Nov 2016, 4:55 AM
Namas Thapa
Namas Thapa - avatar
2 Answers
+ 2
Oh! I knew it although you set width for block element. It doesn't let other elements to be in that line. So mean ...lol..
5th Nov 2016, 5:04 AM
Namas Thapa
Namas Thapa - avatar
+ 1
even if you set the width that element will keep the entire line space, so like Namas said, another element will be placed in the nex line of the page. But you can use custom width if you plan to draw a border or define a background
5th Nov 2016, 9:53 AM
Jorge Escamilla
Jorge Escamilla - avatar