Comments (4)
Let me see if I understand your issue.
I think you having this spacing problem because the text-align is justify.
You want an option to set the text-align to center?
from starwarsintrocreator.
Here's an example using the first three lines:
..
It is a period of civil war. Rebel
spaceships, striking from a
hidden base, have won their first
...
The line:
spaceships, striking from a
has more inter-word spaces than most other lines.
http://www.w3.org/wiki/CSS/Properties/word-spacing
If that line was spaced differently, it might be able to accommodate an extra word:
spaceships, striking from a hidden
that in turn might allow the final line to not be a single word:
...
It is a period of civil war. Rebel
spaceships, striking from a hidden
base, have won their first victory
against the evil Galactic Empire.
...
Just a suggested feature improvement. No big deal.
Might make your work look better when other than your default text is being used.
from starwarsintrocreator.
I've tested here and I figure out, with -4px in word-spacing will get the result you proposed to the default text. But in other texts we may not have the same result because it depends on the last word on a line.
Take the two lines, from lorem ipsum, bellow:
ligula pretium, bibendum ex sit
amet, mollis risus. Donec
sollicitudin hendrerit mollis
The word "sollicitudin" will take the last line because the word is too big for the second line.
Therefore I will not change the word-spacing because it will not improve the spacing on most cases.
from starwarsintrocreator.
Thanks Bruno - I appreciate the care you take. If I can discover an algorithm that will do 'best fit' then I'll post it here.
Thanks again for the good work.
C.
from starwarsintrocreator.
Related Issues (20)
- Allow edit the Death Star image.
- Doesn't work on iOS HOT 1
- Title spacing and font size HOT 2
- Made 3 lines possible in the Logo HOT 2
- Is there a way I can incorporate this into my portfolio HOT 1
- copyright's HOT 1
- No guide / wiki / tutorials and not enough documentation HOT 5
- Center text configuration HOT 1
- Text should fill the viewport width. HOT 1
- Not showing text correctly on Android on landscape orientation HOT 2
- Update YouTube sample and images samples on README.md
- Is this HTML and CSS page (not video) open source? HOT 1
- No audio when viewing in Chrome on Android mobile HOT 10
- Scroll does not appear on Edge HOT 1
- Customize Lucasfilm logo?
- Let users edit Star Wars logo HOT 4
- Android Chrome rendering has a big right bar on the right hand side of the screen HOT 1
- Add video recording option HOT 4
- Edit imported text when linked by another user 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 starwarsintrocreator.