Skip to content
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 (Request in QGIS) #9376

Closed
qgis-bot opened this issue Nov 9, 2024 · 0 comments · Fixed by #9502
Closed

Support CSS margins for block elements in HTML labels (Request in QGIS) #9376

qgis-bot opened this issue Nov 9, 2024 · 0 comments · Fixed by #9502
Labels
3.42 QGIS 3.42 new features Labels Layer labels properties
Milestone

Comments

@qgis-bot
Copy link
Collaborator

qgis-bot commented Nov 9, 2024

Request for documentation

From pull request qgis/QGIS#59263
Author: @nyalldawson
QGIS version: 3.42

Support CSS margins for block elements in HTML labels

PR Description:

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)

Sponsored by City of Freiburg im Breisgau

Commits tagged with [need-docs] or [FEATURE]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.42 QGIS 3.42 new features Labels Layer labels properties
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants