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.
I think the grey box now will be of fixed width if autosize width only is set on it. No need of a blank text frame now.
So the column and the text are sizeable but the box with the inset text does not flow. I want it to remain the same width as the column and reflow.
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.
You don't have "mock around with the CSS everytime" anyway. Just assign that CSS on export.
Thank you for the quick response. I'm not sure what you mean by "assign that CSS on export." Could you walk me through it?
In the Advanced panel on EPUB export, choose Add Style Sheet and select the CSS file you'd like to use.