Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 05-03-2012, 03:54 PM   PM User | #1
DaveRich
New to the CF scene

 
Join Date: Mar 2012
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
DaveRich is an unknown quantity at this point
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.
DaveRich is offline   Reply With Quote
Old 05-03-2012, 08:59 PM   PM User | #2
DaveRich
New to the CF scene

 
Join Date: Mar 2012
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
DaveRich is an unknown quantity at this point
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.
DaveRich is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:21 AM.


Advertisement
Log in to turn off these ads.