Answers for "how to align right in css"

1

div align right in css

#cTask {
  background-color: lightgreen;
}

#button {
  position: relative;
  float: right;
}

#addEventForm {
  position: relative;
  float: right;
  border: 2px solid #003B62;
  font-family: verdana;
  background-color: #B5CFE0;
  padding-left: 10px;
}
Posted by: Guest on September-26-2021
3

css right

.right {
  position: fixed; /* the fixed pos makes it work */
  right: /*how much you want to move it right 
    put % or px or rem at end of the amount */;
}
Posted by: Guest on September-22-2020
1

css align to left

body {
  text-align: left;
}
Posted by: Guest on April-09-2020

Browse Popular Code Answers by Language