Website Developer Question:

Explain me what Is The Use Of Float Property In CSS?

Tweet Share WhatsApp

Answer:

With the help of float property, we can control the position and layout of elements on a web page.

For example, it can define the placement of a <div> either to the right or left side.

Also, to note that it doesn’t interfere with the elements appearing before.

div {
float: left;
}

Download Website Developer PDF Read All 80 Website Developer Questions
Previous QuestionNext Question
Tell us what Types Of Comments Does JavaScript Support?Do you know what Is Grouping In CSS3?