December 23, 200916 yr Hi, Is it advisable to position a page element using negative values? I'm just getting my head around position without using "absolute" for everything. As all good amateurs do apparently!. I'm finding it a bit frustrating because you position one element, create another and everything shifts. Then you have to work out what goes first in the code and what method to use - float, relative, clear . . . I know I've got to get this sorted but it's tricky I find.
December 23, 200916 yr The answer is to practice, I suppose. I try not to use negative positions when I'm not using position: absolute, unless I deliberately want to layer one element over another. You should be able to use margins, padding and float to position elements relative to each other. If you use negative positions, you will move the element but it will leave a space where it used to be, which causes problems for the following elements as they think the first element is still there, so you have to add a negative position to the second element, and so on.
December 23, 200916 yr Author Thanks, I discovered that using negative values leaves a big gap. Weird that isn't it! I'll give it a miss.I think it's a habit to nip in the bud.
Create an account or sign in to comment