Left vs. Margin-left, basic question (i should know this by now.)
I have an element that i am positioning with position:absolute and i honestly don't know if i should
use left: or Margin-left?
What is the rule of thumb for deciding which one to use.
(i should know this by now!)
To control the positioning of an element with position:absolute, use top or bottom to control the vertical position and left or right to control the horizontal position. It can seem like you're controlling position with the margin settings, but you're essentially just changing an offset from the default position settings for the element, and that may cause problems in the future.
thank you both for the help
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)