CSS Layout Notes
CSS Layout Notes
The CSS clear property specifies what elements can float beside the
cleared
The float property is used for positioning and formatting content e.g. let
an
none - The element does not float (will be displayed just where it occurs
In its simplest use, the float property can be used to wrap text around
images.
<!DOCTYPE html>
<html>
<head>
<style>
img {
float: left;
</style>
</head>
<body>
<h2>Float Right</h2>
<p>In this example, the image will float to the right in the paragraph, and
the text in the paragraph will
wrap around the image.</p>
fhdgkdfkgfdkgkfdkgfdkgkfdgkfdkgfdkgkfdkg.</p>
</body>
</html>