The clear property is used to specify that which side of floating elements are not allowed to float. It sets or returns the position of the element in relation to floating the objects.
The “clear: both” means floating the elements are not allowed to float on both sides. It is used when no need of any element float on the left and right side as related to the specified element and wanted the next element only shown below. It also indicates that no other element takes up space on the left and right side.
Supported Browsers: The supported browsers are listed below:
- Google Chrome
- Internet Explorer
- CSS | column-rule-width Property
- CSS | column-rule Property
- CSS | column-rule-style Property
- CSS | column-rule-color Property
- CSS | @import rule
- CSS | @charset Rule
- CSS | @media Rule
- CSS | @keyframes Rule
- CSS | @font-face rule
- CSS | @page rule
- CSS | @document rule
- CSS | @supports Rule
- How to create a CSS rule or class at runtime using jQuery ?
- How to align text in CSS where both columns are straight?
- What does the “+” (plus sign) CSS selector mean?
- What does symbol tilde (~) denotes in CSS ?
- CSS | clear Property
- Sass @function Rule
- Sass | @at-root rule
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.