I was getting reaquanted with 'A List Apart's tutorial on css shadows.
and i noticed they used negative margins for pulling out the image.
I first asked myself, Why not use negative relative positioning? Is it
a matter of choice?
At first i thought, "Relative positioning adds possibility that you
might need an extra parent div to set positioning context, but quickly
realized relative positioning doesnt need that."
Is it cause the next sibling item  after the item that uses relative
positioning will appear in normal flow (thus annoying whitespace
between siblings), thus negative margins is more natural since next
item will be placed right after it [and nullifying my entire question
since pointless to use relative positioning then for comparision]?  I
guess my question would make more sense if i was comparing absolute
positioning when an extra semantic div is added to establish
positioning context (with position:relative) and the image underneith
uses absolute negative positioning to pull image up. but i guess i
answered my own question, it adds more complex code?


Thanks,
Ari
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to