# Get Flex Elements to 'float-right'

Say you have flex elements laid out within a row, and they are arranged from left to right. You could get the flex element to ‘float right’ by using the folllowing css:

div {
  margin-left: auto
}
Tags:
css