{"action":"closed","issue":{"url":"https://api.github.com/repos/towry/n/issues/48","repository_url":"https://api.github.com/repos/towry/n","labels_url":"https://api.github.com/repos/towry/n/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/towry/n/issues/48/comments","events_url":"https://api.github.com/repos/towry/n/issues/48/events","html_url":"https://github.com/towry/n/issues/48","id":160696335,"number":48,"title":"css: safari button text not centered.","user":{"login":"towry","id":8279858,"avatar_url":"https://avatars.githubusercontent.com/u/8279858?v=3","gravatar_id":"","url":"https://api.github.com/users/towry","html_url":"https://github.com/towry","followers_url":"https://api.github.com/users/towry/followers","following_url":"https://api.github.com/users/towry/following{/other_user}","gists_url":"https://api.github.com/users/towry/gists{/gist_id}","starred_url":"https://api.github.com/users/towry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/towry/subscriptions","organizations_url":"https://api.github.com/users/towry/orgs","repos_url":"https://api.github.com/users/towry/repos","events_url":"https://api.github.com/users/towry/events{/privacy}","received_events_url":"https://api.github.com/users/towry/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/towry/n/labels/CSS","name":"CSS","color":"d4c5f9"},{"url":"https://api.github.com/repos/towry/n/labels/Mobile","name":"Mobile","color":"c5def5"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-06-16T15:52:27Z","updated_at":"2016-07-07T06:08:03Z","closed_at":"2016-07-07T06:08:03Z","body":"```html\r\n<button>this is text</button>\r\n```\r\n\r\n```css\r\nbutton {\r\nwidth: 100%;\r\ndisplay: flex;\r\n}\r\n```\r\n\r\nThe button text will not be centered.\r\nThe solution is wrap the text in a span, and give the span style: `flex: 1`;\r\n\r\n```\r\nbutton {\r\n  width: 100%;\r\n  display: flex;\r\n}\r\n\r\nspan {\r\n  flex: 1;\r\n}\r\n```"}}
{"actor":{"display_login":"towry"}}