Crushing Codecademy PRO WEB DEVELOPMENT career path Challenge - Float

Published: 20 December 2020
on channel: Dusan Cajic
48
1

So far, you’ve learned how to specify the exact position of an element using offset properties. If you’re simply interested in moving an element as far left or as far right as possible on the page, you can use the float property.

The float property can be set to one of two values:

left - this value will move, or float, elements as far left as possible.
right - this value will move elements as far right as possible.

Floated elements must have a width specified, as in the example above. Otherwise, the element will assume the full width of its containing element, and changing the float value will not yield any visible results.


Watch video Crushing Codecademy PRO WEB DEVELOPMENT career path Challenge - Float online without registration, duration hours minute second in high quality. This video was added by user Dusan Cajic 20 December 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 48 once and liked it 1 people.