Website Developer Question:

Download Job Interview Questions and Answers PDF

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

Website Developer Interview Question
Website Developer Interview Question

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 Interview Questions And Answers PDF

Previous QuestionNext Question
Tell us what Types Of Comments Does JavaScript Support?Do you know what Is Grouping In CSS3?