I'm new to creating epubs and am using InDesign CC.
I'm trying to create flowable text within a box. I want the box to always remain the width of the column and the text to reflow within that.
Been trying a million things and can't find a tutorial. Help!
A text frame in InDesign when exported to EPUB, does not have a height and width associated with it to support text reflow. If you want to have a text frame with fixed height, this is what you can do:
1. create a blank text frame
2. create another text frame, fill with text and anchor it to previous one.
3. select the text frame(created in step-2) and set Autosize-Width only from text frame options
4. export to epub
Since the main text frame is blank, epub will contain just one text frame and since it is anchored it will have fixed width.
Ok...I got your problem now. You can edit your epub to remove width attribute on inline anchored text frame. It is pretty simple:
1. Download Sigil (It is an open source EPUB editing tool)
2. Open your epub in Sigil
3. Open CSS (idGeneratedStyles.CSS) and remove the width attribute on the div class.
There must be block like this:
Remove width from this block and save.
Hope you get the expected result after this step.
What you have attached is the snapshot of HTML and not the CSS. There is a CSS file which appears in styles folder in Sigil. You have to open the CSS and find the construct I have listed above. Please let me know if you are still not able to find the code, I will attach the snapshot and guide you through.
Thank you for this excellent advice. I was experiencing the same issues as moongirlcw and managed to fix my text boxes in the CSS.
One question: Is there a way to export the changes made to anchored text frames' width in the CSS and apply them to the Indesign file? This way, I wouldn't have to mock around in the CSS everytime I wish to update my Indesign file and produce a new version of my epub.
Adobe has made major changes in improving export to EPUB, and they're working very hard to add improvements. (If you look in this forum regularly, you'll see postings by Adobe engineer Douglas Waterfall, who's working in this area.) However, there's not such a way to apply changes from CSS back to InDesign, and I doubt there ever will be. There are too many differences between InDesign styling and CSS for that to be possible.