Loading…

What is float in CSS?

The float property in CSS places an element on the right or left side of its container, allowing text and inline elements to wrap around it.

Example

                                        

.sidebar {
float: right;
width:30%;
}

Suggest An Answer

No suggestions avaliable!

Latest post from CSS interview questions

Ask Question