HTML Element Style How to - Make div absolute right


We would like to know how to make div absolute right.


<!-- w  ww . j  a  va 2s.c  om-->
<!DOCTYPE html>
<style type='text/css'>
.A {
  background: green;

.B {
  background: yellow;
  position: relative;

.C {
  background: red;
  position: absolute;
  top: 0;
  right: 0;

.container {
  position: relative;
  <div class="container">
    <div class="A">A</div>
    <div class="B">B</div>
    <div class="C">C</div>

The code above is rendered as follows: