HTML Expand To Fit |
September 6th, 2012 |
| html, tech |
Draft: Trip To LambertvilleThis runs a little loop:
make font huge
while vertical scroll bar present:
make font a little smaller
While this works, I really ought to be able to ask the browser nicely
"make this as big as will fit" instead of forcing it to do
something so stupid [2]. Is this possible with just html and css?
[1] To replace the tiny illegible index cards in my wallet.
[2] Yes, I could use binary search. O(n) → O(log(n)). Still stupid.
Comment via: google plus, facebook, substack