Just a quick question about css positioning, the only positioning attribute that can be used to move a element from the bottom and the top is position: relative;top, or position: relative; bottom right?

  • When you say "right?" do you mean "am I right?" or do you mean right as in the direction? :) Because top, right, bottom and left are all directions you can use for positioning. Don Zacharias over 7 years ago

1 answer

Mottie 1134

I'm not sure what you are trying to do, but you can always add padding, margins or even a border to reposition elements. In case you want to learn more about using position, check out this great tutorial.

Answered over 7 years ago by Mottie
  • 'position' need not be 'relative' too, it can be other values e.g. absolute, fixed, but the parent element must have its 'position' set. o.k.w over 7 years ago