What is Float in CSS?

Last Update: Apr 26 2024 | BY: Joy Christian

J

Jusprit Singh

Float properties in CSS:

CSS float is used to define, how an HTML element will float with respect to other HTML elements on a web page. CSS float properties can be assigned by possible values, that are listed below:

  1. LEFT -  The left element float's to the left side of its parent element container. 
  2. RIGHT - The right element float's to the right side of its parent element container.
  3. NONE - It is the default value of CSS float property, the element does not float.
  4. INHERIT - Inherit property is using the same float value, which is of its parent float value.

0 votes

Your Answer

Email Us: advertise@gdatamart.com

Donate Us: Support to GDATAMART

LifeStyle & Fun

© 2024 GDATAMART.COM (All Rights Reserved)