09/04/2024 Education - Training
The CSS float property is used to control the positioning of an element within its parent container.
When you apply the float property to an element, it can be moved to the left or right of its containing element and have other content flow around it.
CSS Float property:
Property Description value
clear the clear property is used to avoid left,
elements after the floating elements which right,both
flow around it. none, inherit
float it specifies whether the box should float or not.
left,right,none,inherit
CSS Float property Values:
Value Description
none It specifies that the element is not flaoted, and will be displayed just where it occurs in the text. this is a default value.
left It is used to float he element to the left.
right It is used to float the element to the right.
initial It sets the property to its initital value.
inherit It jis used to inherit this property from its parent element.
**CSS Tutorial: Style Your First Web Page** is the perfect beginner-friendly guide to learning how to add style and design to your website. This tutor...
CSS (Cascading Style Sheets) is a stylesheet language used to describe the presentation of HTML elements on a web page. It controls layout, colors, fo...
Learning CSS is absolutely essential for any web developer, especially for those working on the front end (the part of the website users see). Here’s ...
CSS stands for Cascading Style Sheets. It is the language used to style and layout web pages — defining how HTML elements look on screen, paper, or in...
More Details