Adjust css examples formatting (#26127)
This commit is contained in:
@ -18,12 +18,12 @@ The `float` property can have one of the following values:
|
||||
`inherit` - The element inherits the float value of its parent
|
||||
In its simplest use, the `float` property can be used to wrap text around images.
|
||||
|
||||
#### Float in Picture:
|
||||
#### Float in Picture:
|
||||

|
||||
|
||||
```
|
||||
img {
|
||||
float: right;
|
||||
float: right;
|
||||
}
|
||||
```
|
||||
This example specifies that an image should float to the right in a page:
|
||||
@ -31,14 +31,14 @@ This example specifies that an image should float to the right in a page:
|
||||

|
||||
```
|
||||
img {
|
||||
float: left;
|
||||
float: left;
|
||||
}
|
||||
```
|
||||
This example specifies that an image should float to the left in a page:
|
||||
|
||||
```
|
||||
img {
|
||||
float: none;
|
||||
float: none;
|
||||
}
|
||||
```
|
||||
|
||||
@ -64,7 +64,7 @@ When clearing floats, you should match the `clear` to the `float`. If an element
|
||||
Source: CSS-TRICS
|
||||
```
|
||||
div {
|
||||
clear: left;
|
||||
clear: left;
|
||||
}
|
||||
```
|
||||

|
||||
|
Reference in New Issue
Block a user