{"action":"created","issue":{"url":"https://api.github.com/repos/mpdf/mpdf/issues/259","repository_url":"https://api.github.com/repos/mpdf/mpdf","labels_url":"https://api.github.com/repos/mpdf/mpdf/issues/259/labels{/name}","comments_url":"https://api.github.com/repos/mpdf/mpdf/issues/259/comments","events_url":"https://api.github.com/repos/mpdf/mpdf/issues/259/events","html_url":"https://github.com/mpdf/mpdf/issues/259","id":187488700,"number":259,"title":"Initial Drop Caps fail","user":{"login":"1manfactory","id":232674,"avatar_url":"https://avatars.githubusercontent.com/u/232674?v=3","gravatar_id":"","url":"https://api.github.com/users/1manfactory","html_url":"https://github.com/1manfactory","followers_url":"https://api.github.com/users/1manfactory/followers","following_url":"https://api.github.com/users/1manfactory/following{/other_user}","gists_url":"https://api.github.com/users/1manfactory/gists{/gist_id}","starred_url":"https://api.github.com/users/1manfactory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1manfactory/subscriptions","organizations_url":"https://api.github.com/users/1manfactory/orgs","repos_url":"https://api.github.com/users/1manfactory/repos","events_url":"https://api.github.com/users/1manfactory/events{/privacy}","received_events_url":"https://api.github.com/users/1manfactory/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-05T10:19:02Z","updated_at":"2016-11-30T09:04:32Z","closed_at":null,"body":"### I have this problem/would like to have this functionality\r\n\r\nI tried to create initial drop caps (which always looks fine on HTML) with help of this article https://www.smashingmagazine.com/2012/04/drop-caps-historical-use-and-current-best-practices/\r\n\r\nBut somehow the only changes applied to the initial letter are color and size. All other settings took no affect: margin-top, margin-right etc.\r\n\r\n### These are mPDF and PHP versions I am using\r\nmPDF 6,1\r\nPHP Version 5.4.45-0+deb7u5\r\n\r\n### This is a PHP code snippet I use\r\n\r\n```\r\n<?php\r\nrequire_once '../../mpdf61/mpdf.php';\r\n$html = '\r\n<?xml version=\"1.0\" encoding=\"utf-8\" ?>\r\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">\r\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"de\">\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"application/xhtml+xml; charset=utf-8\" />\r\n<title>Initialen</title>\r\n    <style>\r\n      h1 { color: green; }\r\n\t  \r\n.dropcap{\r\n    float:left;\r\n    font-size:400%;\r\n    margin-top:14px;\r\n    margin-right:5px;\r\n    color:#8C8273;\r\n    }\t  \r\n\r\n    </style>\r\n</head>\r\n<body>\r\n<h1>Initial Drop Caps</h1>\r\n<p><span class=\"dropcap\">H</span>istorically, initial caps were not just decorative elements. Scribes used them to mark where a new section—a new idea—started in the text. This in turn helped “readers” find their place in a text. ÄÖÜ</p>\r\n</body>\r\n</html>\r\n';\r\n\r\n\r\n$mpdf=new mPDF('', 'A5'); \r\n$mpdf->SetDisplayMode('fullpage');\r\n$mpdf->WriteHTML($html);\r\n$mpdf->Output('./initialen'.md5(mt_rand()).'.pdf');\r\n?>\r\n\r\n\r\n```\r\n\r\nSee the results in the attached file.\r\n[initialen3d97fbabfe57265ea0043a62264145c4.pdf](https://github.com/mpdf/mpdf/files/573112/initialen3d97fbabfe57265ea0043a62264145c4.pdf)\r\n"},"comment":{"url":"https://api.github.com/repos/mpdf/mpdf/issues/comments/263819865","html_url":"https://github.com/mpdf/mpdf/issues/259#issuecomment-263819865","issue_url":"https://api.github.com/repos/mpdf/mpdf/issues/259","id":263819865,"user":{"login":"jakejackson1","id":2918419,"avatar_url":"https://avatars.githubusercontent.com/u/2918419?v=3","gravatar_id":"","url":"https://api.github.com/users/jakejackson1","html_url":"https://github.com/jakejackson1","followers_url":"https://api.github.com/users/jakejackson1/followers","following_url":"https://api.github.com/users/jakejackson1/following{/other_user}","gists_url":"https://api.github.com/users/jakejackson1/gists{/gist_id}","starred_url":"https://api.github.com/users/jakejackson1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakejackson1/subscriptions","organizations_url":"https://api.github.com/users/jakejackson1/orgs","repos_url":"https://api.github.com/users/jakejackson1/repos","events_url":"https://api.github.com/users/jakejackson1/events{/privacy}","received_events_url":"https://api.github.com/users/jakejackson1/received_events","type":"User","site_admin":false},"created_at":"2016-11-30T09:04:32Z","updated_at":"2016-11-30T09:04:32Z","body":"Based on your report and your code snippet, what you have described is the current expected behaviour. [Please refer to the Mpdf documentation](http://mpdf.github.io/css-stylesheets/supported-css.html) for supported CSS on inline elements (i.e your span tag)."}}
{"actor":{"display_login":"jakejackson1"}}