Skip to content

Commit

Permalink
docs(layout): update css-utilities to float properly
Browse files Browse the repository at this point in the history
closes #265
  • Loading branch information
brandyscarney committed Mar 6, 2023
1 parent b44c54d commit baaca81
Showing 1 changed file with 30 additions and 10 deletions.
40 changes: 30 additions & 10 deletions docs/layout/css-utilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,17 +134,37 @@ The float CSS property specifies that an element should be placed along the left
```html
<ion-grid>
<ion-row>
<ion-col class="ion-float-left">
<div>
<h3>float-left</h3>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ac vehicula lorem.
</div>
<ion-col>
<h3>no float</h3>
<img
alt="Silhouette of a person's head"
src="https://ionicframework.com/docs/img/demos/avatar.svg"
height="50px"
/>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ac
vehicula lorem.
</ion-col>
<ion-col class="ion-float-right">
<div>
<h3>float-right</h3>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ac vehicula lorem.
</div>
<ion-col>
<h3>float-left</h3>
<img
alt="Silhouette of a person's head"
src="https://ionicframework.com/docs/img/demos/avatar.svg"
height="50px"
class="ion-float-left"
/>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ac
vehicula lorem.
</ion-col>
<ion-col>
<h3>float-right</h3>
<img
alt="Silhouette of a person's head"
src="https://ionicframework.com/docs/img/demos/avatar.svg"
height="50px"
class="ion-float-right"
/>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed ac
vehicula lorem.
</ion-col>
</ion-row>
</ion-grid>
Expand Down

0 comments on commit baaca81

Please sign in to comment.