In an EPUB file, there can be one stream of text. When viewed in the EPUB reader, it will resize depending on the dimensions of the EPUB reader window, and the settings chosen.
However, you can also anchor other text frames, like a sidebar. It sounds like that's what you want. Try anchoring the text frame in the main text flow. In InDesign CC, select the anchored frame and choose Object > Text Frame Options > Auto-size, and set the width and height to autosize.
I don't have the time to test it this morning, but I think this might work.
Thanks so much for this advice! I didn't think to look and see if I could get the text box to resize. It is going to be in the text flow, not even sitting on the side, as the client wants some of the text highlighted that way.
Hi there Steve,
Thanks so much for your advice on this point, but sadly it did not work.
It still produces a blue box that is a fixed size, no matter how wide or narrow I make the book preview in Oracle Digital Editions.
Does anyone know if you can create a textbox within the main textbox that will resize when it goes out to epub? I need to have text in blue boxes every now and then in this epub and I am having trouble working out how to do this in InDesign.
I am a web designer as well, so I know I could easily edit the epub to have a blue box using CSS (or I hope the epub format supports that anyway), but I would like to set up the blue box in InDesign and have it export out to epub and be able to be resized.
Thanks so much folks.
Hi Mary, since you said that you are web designer, surely you can edit your epub css. In that way you have full control of how the look of your text. InDesign is a very powerful application, but you can't output epub easily without modifying the css file. And most ePub designer modifies it's css by cleaning up junk and unnecessary lines of codes in css.
Yes editing the css seems the easiest solution here for me. I will try that and see how it displays in the epub viewer. Fingers crossed!
Consider using a custom CSS file. When you export the ePub from InDesign
you can point it to that file in the export dialog box, and any settings
there will override InDesign's CSS. The advantage is that if you make
any edits to the InDesign file you don't have to keep manually editing
the CSS afterwards.
Yes that is what I mean. I find I have to set the blue text box to be wider than the page size in order to have it a reasonable size in the epub. But then when I resize the epub page, the blue box does not change size.
So maybe adding a CSS file like Ariel suggests is the way to go.
Thanks so much for your help!
Thanks for this. Yes I did notice on the epub export screen in ID CC there is now that option to attach an external CSS file.
How would I name the div id or class to apply to the blue box? Would I set up a style for that and then check what name it exports to in the epub CSS and then redefine that class in the new CSS stylesheet I plan to attach?
This is a new option here that I can see I will need to investigate.
I am setting the book up in ID CC for epub and then once that is finalised I will set it again for print.
Thanks so much for your help with this.