Comments (7)
@danilcostefanovski Thanks for showing interest in this library.
Library takes into account width from html table's style property. eg <table border="1" style="width:150px;"><tr><td>sample text</td></tr></table>
. Checkout v1.1.11 if you were using any previous versions.
For now, column width isn't supported, but I will try to add support for them as soon as possible, but for now if you require uneven cell sizing, I guess maybe you can try out colspan which is supported, else all columns will have equal width.
And sorry to be saying this, but div isn't a topic something that I have solved as of now. So none of the css you have set on div would take effect ATM.
from html-to-docx.
The latest changes might mitigate the need to set column width altogether. Looks spacier now.
from html-to-docx.
@amrita-syn This is something that totally skipped my mind, and will be adding support for it soon. With your latest PR, we now have table min-width also handled.
from html-to-docx.
Column (td
level) widths are now supported by adding style="...; width: 25%; ..."
to the td
elements. Closing issue.
from html-to-docx.
Column (
td
level) widths are now supported by addingstyle="...; width: 25%; ..."
to thetd
elements. Closing issue.
I can't for the life of me get td: width to work with the latest release. The resulting docx just gives two 50% columns.
Here's my code:
<table style="text-align: left; border:0px solid white; width: 100%; table-layout: fixed"> <tr style="border: 0px;"> <td style="border: 0px; width: 40%"> <p>Some Text Here</p> </td> <td style="border: 0px; width: 40%"> <p>some more text</p> </td> </tr> </table>
from html-to-docx.
Same problem here : the width of td
elements is not taken into account and the resulting docx just gives two 50% columns...
from html-to-docx.
Same problem here : the width of
td
elements is not taken into account and the resulting docx just gives two 50% columns...
To be addressed in #105
from html-to-docx.
Related Issues (20)
- How to resize images - is it possible?
- Images & style doesn't apply well in .docx file HOT 4
- html to docx conversion raise an error when it transform a table with merged cell
- Margins don't work
- ADD page break if content doesn't have enough room
- XML error when using with Vite (React or Vue)
- browser webpack error
- How to preserve border-bottom without table
- Refactoring work done HOT 4
- bug: when an image is nested under spans, xml-builder doesn't pick up the img tag
- README.md does not show how to load the HTMLtoDOCX function HOT 2
- Nested formatting tags are not getting applied
- STRIKE THROUGH Not working HOT 3
- Reference error : ReferenceError: HTMLToDOCX is not defined.
- Uncaught TypeError: Class extends value undefined is not a constructor or null
- ul element not properly displayed HOT 1
- Nuxt 3 (no SSR)+ Vite not working - Cannot read properties of undefined (reading 'prototype')
- Cannot read properties of undefined (reading 'getVNodeKey') HOT 1
- console.warning is not a function
- Module not found: Error: Can't resolve 'encoding' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from html-to-docx.