Add support for css display:block and display:inline

Open
#1,960 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 5 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
22/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
css, php
Domain
web-dev

Research direction

The payload names no files, so start by finding where mPDF maps CSS properties onto its HTML block and inline layout. Render a small HTML sample with a div set to display:inline and a span set to display:block to confirm the current behaviour. Done means those display values change the layout as the issue asks, with a test that compares the output. The issue is over 1000 days old with one comment and no linked pull request, so check with the maintainers before starting.

Written by the indexing model from the issue text.

Description

feature/enhancement help wanted
Please describe the new functionality as best as you can.

Add support for css display:block and display:inline .
The goal is to be able to do styling of div as span and etc... (without the need to modify the html)
I guess it should be relatively easy to implement since those layouts are already implemented in html

Dominant language
PHP
Stars
4.7k
Forks
1.1k
Avg merge
6d 11h
Merged PRs (30d)
4

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mpdf/mpdf

All issues in mpdf/mpdf

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.