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

Html tag css class not working in html to word #1375

Closed
umairali opened this issue May 22, 2018 · 2 comments · Fixed by #2327
Closed

Html tag css class not working in html to word #1375

umairali opened this issue May 22, 2018 · 2 comments · Fixed by #2327
Assignees
Milestone

Comments

@umairali
Copy link

umairali commented May 22, 2018

I am adding CSS class in HTML tag but CSS class not working only inline style is working please suggest anything.

class not working

<style type="text/css">
.pStyle 
{
  font-size:15px;
}
</style>

<p class="pStyle">Calculator</p>

inline style working
<p style="font-family: calibri; font-size: 17px; color: #444444; font-weight: bold;">Calculator</p>

@rkorebrits
Copy link

rkorebrits commented May 27, 2018

I highly doubt that PHPWord would parse your CSS and apply styling, rather apply the styling inline yourself I think.

@Progi1984
Copy link
Member

Progi1984 commented Nov 17, 2022

@umairali & @rkorebrits It's in progress : #2327

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

3 participants