Ask coding questions

← Back to all posts
When I want to move my object to the right it replies to me with an "Invalid Property"
Puffy2017 (10)

Here is a screenshot provided:

Here is what I want to do

Answered by notGilbert (121) [earned 5 cycles]
View Answer
Comments
hotnewtop
notGilbert (121)

You need a unit (like px, rem, or %)

.selector {
  right: 100px; /* moves it 100px from the right */
}