Be a Supporter!

Css - Position Absolute - Safari

  • 3,046 Views
  • 4 Replies
New Topic Respond to this Topic
Tiki-King
Tiki-King
  • Member since: Jul. 25, 2009
  • Offline.
Forum Stats
Member
Level 02
Programmer
Css - Position Absolute - Safari 2012-02-13 10:56:07 Reply

Have any of you experienced any similar problems?

Including absolute positioned element in relative positioned parent div and then moving it with margins, works fine in every browser except safari.
The element in safari is moved far more to the left that it shoud be.

Any ideas?
I know it is a common problem, but havent found any real solutions so far.

Thanks

Fallin-Again
Fallin-Again
  • Member since: Aug. 24, 2004
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to Css - Position Absolute - Safari 2012-02-15 16:10:57 Reply

You could always make a browser specific section for that code alone. Adjust it any way you can to make it look right in safari and call it when its needed.


yea yea yea yea yea yea yea yea yea yea yea yea yea yea yea yea yea yea yea yea yea yea yea yea

Tiki-King
Tiki-King
  • Member since: Jul. 25, 2009
  • Offline.
Forum Stats
Member
Level 02
Programmer
Response to Css - Position Absolute - Safari 2012-02-16 08:52:13 Reply

At 16 hours ago, Fallin-Again wrote: You could always make a browser specific section for that code alone. Adjust it any way you can to make it look right in safari and call it when its needed.

Good idea :) Thanks

Mich
Mich
  • Member since: Jan. 12, 2008
  • Offline.
Forum Stats
Member
Level 43
Musician
Response to Css - Position Absolute - Safari 2012-02-19 14:28:22 Reply

At 6 days ago, Tiki-King wrote: Have any of you experienced any similar problems?

Including absolute positioned element in relative positioned parent div and then moving it with margins, works fine in every browser except safari.
The element in safari is moved far more to the left that it shoud be.

Any ideas?
I know it is a common problem, but havent found any real solutions so far.

Thanks

If you are using position:absolute;, why are you positioning it with margins? Use left. right, top, bottom properties to position your element instead.

Tiki-King
Tiki-King
  • Member since: Jul. 25, 2009
  • Offline.
Forum Stats
Member
Level 02
Programmer
Response to Css - Position Absolute - Safari 2012-02-20 07:40:04 Reply

At 17 hours ago, Mich wrote:
At 6 days ago, Tiki-King wrote: Have any of you experienced any similar problems?

Including absolute positioned element in relative positioned parent div and then moving it with margins, works fine in every browser except safari.
The element in safari is moved far more to the left that it shoud be.

Any ideas?
I know it is a common problem, but havent found any real solutions so far.

Thanks
If you are using position:absolute;, why are you positioning it with margins? Use left. right, top, bottom properties to position your element instead.

OMG Mich, it works like a charm. Thanks.
Thought it doesnt matter whether you choose margins or left/right...

:)