Thread: Collapsing box
View Single Post
Old 07-08-2012, 02:56 PM   #2
theducks
Grand Sorcerer
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 15,291
Karma: 6022733
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by dicknskip View Post
Is it possible, in the css of an ePub, to define a box that will shrink in from left and right to fit the text inside it? It is easy to make a fixed percentage width box, but I can't find any way to make the width of the box be defined by the width of the content. I did a lot of searching and even did a little playing around with a test css and no luck.

TIA (not holding out much hope though)
Think 'Box Model' and it is easy in EPUB.
It is all done in the .box style

(this solution will probably fail if converted to some other formats. Try and see what you get )
Attached Files
File Type: epub wordinboxTEST.epub (1.8 KB, 66 views)
theducks is online now   Reply With Quote