-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support CSS margins for block elements in HTML labels #59263
Conversation
We didn't use to respect these, and we can't change rendering of existing projects now
This pull request has been tagged for the changelog.
You can edit the description. Format available for credits
Thank you! |
@nyalldawson A documentation ticket will be opened at https://github.com/qgis/QGIS-Documentation when this PR is merged. Please update the description (not the comments) with helpful description and screenshot to help the work from documentors. Thank you! |
🪟 Windows buildsDownload Windows builds of this PR for testing. 🪟 Windows Qt6 buildsDownload Windows Qt6 builds of this PR for testing. |
Adds support for CSS margin properties for block elements in the text renderer. Specifically: - This is available for block type elements only, eg DIV, P, H1-H6. - Margins are NOT available for spans or other non-block content (due to Qt limitations) - Margins can be specified in pt units only - Margins can be specified either via "margin-left: 5pt; margin-right: 10pt" etc, or "margin: 5pt 0pt 10pt 0pt" - Negative margins are supported for the bottom margin ONLY (due to Qt limitations)
a0ab396
to
23455a7
Compare
@nyalldawson |
Adds support for CSS margin properties for block elements in
the text renderer. Specifically:
Sponsored by City of Freiburg im Breisgau