Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Mar 2012
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    IE9: Negative Margin-Top Error

    Hey,

    I'm having an issue with negative values for magin-top in IE9, the page appears fine in IE8.

    Here is the line in question:
    Code:
    <svg id="svgMap" width="650px" height="470px" version="1.1" xmlns="http://www.w3.org/2000/svg" style="margin-top: -79px;">
    You can view the page here: http://tinyurl.com/7qqvs97

    I have tried replacing the negative margin-top value with just a negative "top" value, but this did not fix the problem. And I have also tried using conditional JS to adjust the attribute value for margin-top after the page has loaded.

    I am not sure if part of this error is because of the SVG tag.

    Any help is much appreciated! The margin's appear to all work fine in IE8 (with svgWeb), Chrome, and Firefox.

  • #2
    New to the CF scene
    Join Date
    Mar 2012
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I apologize for the oversight in this, I figured out my problem. I had a depreciated function that I was using that was no longer required. This function set the margin to -55px for IE8.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •