I have been using JavaScript to split my ePub chapter into pages by wrapping the code with new divs that represent separate pages. I have also created CSS styles for these new divs. Everything works perfectly when the file has a filename extension of 'html', but since the ePub provides xml files, the styles for the new divs are not being applied in Safari. (I can resolve this issue by renaming the file and changing the extension from xml to html). What am I doing wrong? Thank you for any help!
UPDATE link to xml to html