I've been struggling to figure out the correct format for creating a border-less table that, when pasted in Word, will maintain its appearance as shown below:
<strong>Foo</strong>
<ol>
<li value="0">This is zero.</li>
<li value="7">Another number.</li>
<li value="42">Favorite number.</li>
</ol>
<strong>Bar</strong>
<ol>
<li value="0">This is zero.</li>
<li value="7">Another number.</li>
<li value="42">Favorite number.</li>
</ol>
The desired layout is as follows:
Some strong text here
0. Right aligned numbers on the left
42. And text on the right side
7. With some padding on the left.
Challenges Faced
Using a list like above While this approach looks good in the browser, upon pasting into Word or Apple Pages, the ordered list starts from
1
.Using a table Even though the table appears borderless in the browser, borders are automatically added when pasted into text processors like Apple Pages.
Using Divs Divs do not provide enough control over the width and alignment of the first column.
What is the best solution for achieving this specific formatting requirement? The goal is to simply copy and paste the content into Word without losing the intended structure: