-
Why is float used in CSS? |
Beta Was this translation helpful? Give feedback.
Answered by
Bunny77K9
Jun 18, 2022
Replies: 1 comment
-
Float is a popular property in CSS to control the layout and position of an element on a web page. Any element can be placed on the web page as per requirement. Consider the following example: div { float: right; } Here, the contents of div will be placed on the right side of the screen. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
DuajDiaz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Float is a popular property in CSS to control the layout and position of an element on a web page.
Any element can be placed on the web page as per requirement. Consider the following example:
div { float: right; }
Here, the contents of div will be placed on the right side of the screen.