开发者

in between floated elemnts if we give position relative to any element will it effect to flow of document?

in between lots of floated elements if we give position:relative to any element to use position:absolution inside, will it effect to flow of document?

FLOAT 1  |  FLOAT 2  |  FLOAT 3 + position relative |  Float 4

if i only want to give pixel perfect position to开发者_Go百科 an element inside Float 3 box then what should i do? I need compatibility in all browser including IE6


No, it won't. Position relative normally does not affect the flow of the document (siblings) at all unless it is a browser bug. Of course it is meant to affect how a position:absolute child is positioned.

position: relative is the correct way to allow for an absolutely positioned child element.


No, position: relative won't affect that element's flow, it will just allow you to give child elements absolutely positioned to it, and a few extra tricks (like using z-index to raise it's z stacking index).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜