Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 07-08-2012, 01:34 PM   #1
dicknskip
Zealot
dicknskip began at the beginning.
 
Posts: 110
Karma: 10
Join Date: Nov 2009
Location: Okotoks, AB, Canada
Device: iPad V-3
Collapsing box

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)
dicknskip is offline   Reply With Quote
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,054
Karma: 5936659
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, 65 views)
theducks is offline   Reply With Quote
 
Advertisement
Old 07-08-2012, 04:52 PM   #3
dicknskip
Zealot
dicknskip began at the beginning.
 
Posts: 110
Karma: 10
Join Date: Nov 2009
Location: Okotoks, AB, Canada
Device: iPad V-3
Thanks for the info, but it didn't do what I wanted. It was close to what I had tried before. I did three boxes containing three different phrases - a short, medium, and long phrase. All 3 ended up in the same size box sized according to 60% of the width, as expected. I would like the box to fit close around each phrase based on the phrase length. I guess that isn't going to work. I could define a wide box, a medium box, and a narrow box I guess.
dicknskip is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Box in Sigil deasha Sigil 5 09-10-2011 01:57 PM
$119.99 PE New in Box Emptora enTourage eDGe 4 08-17-2011 03:14 PM
Possible tweak: Stop auto-collapsing browser nested items arspr Calibre 7 04-06-2011 05:09 PM
eReader web site collapsing under the load! HarryT News 54 07-15-2008 01:47 PM
Opening the box... Zoot Amazon Kindle 14 11-20-2007 09:46 PM


All times are GMT -4. The time now is 09:54 AM.


MobileRead.com is a privately owned, operated and funded community.