My task involves taking a 5-page story from a Word document and implementing it on a website.
#reading {
hyphens: auto;
text-align: justify
}
<div style="font-size: 20px; width: 750px; margin-bottom: 4em;" class="reading" id="reading">
TextTextText<br> TextTextText
<br> TextTextText
</div>
Requirements for the text:
- The line breaks should match those in the Word document exactly
- All lines should be justified
- I am unable to use span elements due to a script that processes the text
Issue:
- Line breaks and text-align: justify are not functioning together as expected
I experimented with adjusting the div
width to mimic that of the Word document. Initially, the line breaks were correct, but after the first 20 lines, they began to shift slightly.
Query:
Is there a method to manually create line breaks while maintaining text-align: justify
?