Css - Position Absolute - Safari
- Tiki-King
-
Tiki-King
- Member since: Jul. 25, 2009
- Offline.
-
- Forum Stats
- Member
- Level 02
- Programmer
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
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
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
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
At 17 hours ago, Mich wrote:At 6 days ago, Tiki-King wrote: Have any of you experienced any similar problems?If you are using position:absolute;, why are you positioning it with margins? Use left. right, top, bottom properties to position your element instead.
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
OMG Mich, it works like a charm. Thanks.
Thought it doesnt matter whether you choose margins or left/right...
:)


