{"action":"created","issue":{"url":"https://api.github.com/repos/zurb/foundation-emails/issues/224","repository_url":"https://api.github.com/repos/zurb/foundation-emails","labels_url":"https://api.github.com/repos/zurb/foundation-emails/issues/224/labels{/name}","comments_url":"https://api.github.com/repos/zurb/foundation-emails/issues/224/comments","events_url":"https://api.github.com/repos/zurb/foundation-emails/issues/224/events","html_url":"https://github.com/zurb/foundation-emails/issues/224","id":139653353,"number":224,"title":"anchor tag removes paragraph margin (Outlook)","user":{"login":"nwerr","id":17409869,"avatar_url":"https://avatars.githubusercontent.com/u/17409869?v=3","gravatar_id":"","url":"https://api.github.com/users/nwerr","html_url":"https://github.com/nwerr","followers_url":"https://api.github.com/users/nwerr/followers","following_url":"https://api.github.com/users/nwerr/following{/other_user}","gists_url":"https://api.github.com/users/nwerr/gists{/gist_id}","starred_url":"https://api.github.com/users/nwerr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwerr/subscriptions","organizations_url":"https://api.github.com/users/nwerr/orgs","repos_url":"https://api.github.com/users/nwerr/repos","events_url":"https://api.github.com/users/nwerr/events{/privacy}","received_events_url":"https://api.github.com/users/nwerr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/zurb/foundation-emails/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/zurb/foundation-emails/labels/client%20specific","name":"client specific","color":"5319e7"}],"state":"closed","locked":false,"assignee":{"login":"kball","id":44007,"avatar_url":"https://avatars.githubusercontent.com/u/44007?v=3","gravatar_id":"","url":"https://api.github.com/users/kball","html_url":"https://github.com/kball","followers_url":"https://api.github.com/users/kball/followers","following_url":"https://api.github.com/users/kball/following{/other_user}","gists_url":"https://api.github.com/users/kball/gists{/gist_id}","starred_url":"https://api.github.com/users/kball/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kball/subscriptions","organizations_url":"https://api.github.com/users/kball/orgs","repos_url":"https://api.github.com/users/kball/repos","events_url":"https://api.github.com/users/kball/events{/privacy}","received_events_url":"https://api.github.com/users/kball/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-03-09T17:55:40Z","updated_at":"2016-03-10T09:35:09Z","closed_at":"2016-03-09T22:58:20Z","body":"Margin on a paragraph is removed or ignored if I insert an anchor tag inside it. Error occurs only in builded version and some Outlook versions. (for example 2007)\r\n\r\nExample HTML:\r\n```\r\n<container>\r\n  <row class=\"test\">\r\n    <columns small=\"12\" large=\"12\">\r\n      <p class=\"margin-top\">This is a test text with a test <a href=\"#\">link</a>.</p>\r\n    </columns>\r\n  </row>\r\n  <row class=\"test\">\r\n    <columns small=\"12\" large=\"12\">\r\n      <p class=\"margin-top\">This is a test text without a test link.</p>\r\n    </columns>\r\n  </row>\r\n  <row>\r\n    <columns small=\"12\" large=\"12\">\r\n      <p class=\"margin-top\">This is a test text with a test <a href=\"#\">link</a>.</p>\r\n      <button class=\"large\" href=\"http://zurb.com\">I am a large button</button>\r\n      <p class=\"margin-top\">This is a test text with a test <a href=\"#\">link</a>.</p>\r\n    </columns>\r\n  </row>\r\n  <row>\r\n    <columns small=\"12\" large=\"12\">\r\n      <p class=\"margin-top\">This is a test text without a test link.</p>\r\n      <button class=\"large\" href=\"http://zurb.com\">I am a large button</button>\r\n      <p class=\"margin-top\">This is a test text without a test link.</p>\r\n    </columns>\r\n  </row>\r\n  <row class=\"test\">\r\n    <columns small=\"12\" large=\"12\">\r\n      <p class=\"margin-top\">This is a test text with a test <a href=\"#\">link</a>.</p>\r\n    </columns>\r\n  </row>\r\n  <row class=\"test\">\r\n    <columns small=\"12\" large=\"12\">\r\n      <p class=\"margin-top\">This is a test text without a test link.</p>\r\n    </columns>\r\n  </row>\r\n  <row>\r\n</container>\r\n```\r\nExample CSS:\r\n```\r\n@import 'settings';\r\n\r\n$container-background-color: $body-background;\r\n\r\n@import 'foundation';\r\n\r\n.test {\r\n    background-color: #00AA00;\r\n}\r\n.margin-top {\r\n    margin-top: 20px;\r\n}\r\n```\r\nOutlook 2003: http://postimg.org/image/6vefno9ez/\r\nOutlook 2007: http://postimg.org/image/wnuhxkgsr/\r\n\r\nI changed the following in the _types.scss to fix it.\r\n\r\nOriginal:\r\n```\r\nbody,\r\ntable.body,\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6,\r\np,\r\ntd,\r\nth,\r\na {\r\n  color: $global-font-color;\r\n  font-family: $body-font-family;\r\n  font-weight: $header-font-weight;\r\n  padding: 0;\r\n  margin: 0;\r\n  text-align: left;\r\n  line-height: $global-line-height;\r\n}\r\n```\r\n\r\nChanged:\r\n```\r\nbody,\r\ntable.body,\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6,\r\np,\r\ntd,\r\nth,\r\na {\r\n  color: $global-font-color;\r\n  font-family: $body-font-family;\r\n  font-weight: $header-font-weight;\r\n  padding: 0;\r\n  text-align: left;\r\n  line-height: $global-line-height;\r\n}\r\n\r\nbody,\r\ntable.body,\r\nh1,\r\nh2,\r\nh3,\r\nh4,\r\nh5,\r\nh6,\r\np,\r\ntd,\r\nth {\r\n  margin: 0;\r\n}\r\n```\r\n\r\nOutlook 2003: http://postimg.org/image/7b5ywy5jj/\r\nOutlook 2007: http://postimg.org/image/gndxp4bzb/"},"comment":{"url":"https://api.github.com/repos/zurb/foundation-emails/issues/comments/194754849","html_url":"https://github.com/zurb/foundation-emails/issues/224#issuecomment-194754849","issue_url":"https://api.github.com/repos/zurb/foundation-emails/issues/224","id":194754849,"user":{"login":"nwerr","id":17409869,"avatar_url":"https://avatars.githubusercontent.com/u/17409869?v=3","gravatar_id":"","url":"https://api.github.com/users/nwerr","html_url":"https://github.com/nwerr","followers_url":"https://api.github.com/users/nwerr/followers","following_url":"https://api.github.com/users/nwerr/following{/other_user}","gists_url":"https://api.github.com/users/nwerr/gists{/gist_id}","starred_url":"https://api.github.com/users/nwerr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwerr/subscriptions","organizations_url":"https://api.github.com/users/nwerr/orgs","repos_url":"https://api.github.com/users/nwerr/repos","events_url":"https://api.github.com/users/nwerr/events{/privacy}","received_events_url":"https://api.github.com/users/nwerr/received_events","type":"User","site_admin":false},"created_at":"2016-03-10T09:35:09Z","updated_at":"2016-03-10T09:35:09Z","body":"Yes maybe that's the better way to deal with it. But it's unusual that an anchor with margin 0 inside a paragraph removes the paragraph margin. I will try your solution. But one more question: Whats the best practices for text with a button between (With space between texts and button.)?\r\n\r\nExample:\r\n```\r\n<container>\r\n  <row>\r\n    <columns class=\"padding-top\" small=\"12\" large=\"12\">\r\n      <p>This is a test text with a test <a href=\"#\">link</a>.</p>\r\n      <button class=\"large\" href=\"http://zurb.com\">I am a large button</button>\r\n      <p>This is a test text without a test link.</p>\r\n    </columns>\r\n  </row>\r\n</container>\r\n```\r\nAnd still the setting \"$paragraph-margin-bottom\" is ignored in the builded version.\r\nBuilded paragraph:\r\n```\r\n<p style=\"Margin-bottom:10px;color:#0a0a0a;font-family:Helvetica,Arial,sans-serif;font-size:14px;font-weight:400;line-height:19px;margin:0;padding:0;text-align:left\"></p>\r\n```"}}