CSS Left and Right Align

CSS Left and Right Align

//using position

.right {
  position: absolute;
  right: 0px;
  width: 300px;
  border: 3px solid #73AD21;
  padding: 10px;
}
//using float

.right {
  float: right;
  width: 300px;
  border: 3px solid #73AD21;
  padding: 10px;
}

One method for aligning elements is to use position: absolute;.

Another method for aligning elements is to use the float property.

Related concepts

CSS Left and Right Align — Structure map

Clickable & Draggable!

CSS Left and Right Align — Related pages: