Answers.Body: <p>Generally to maximize <a href="https://manual.calibre-ebook.com/faq.html#id33" rel="nofollow noreferrer">compatibility and robustness</a>, epub converters will strip as much styling out as possible to still maintain formatting, so I would encourage you to just deal with it.</p>
  <p>If you absolutely have to keep original styling you can edit the archive using a program like <a href="https://www.7-zip.org/" rel="nofollow noreferrer">7zip</a>. Open the archive and find the .css file within. There is probably significant changes made to classes and ids so it may take quite a bit of fiddling.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-08-03T17:40:27.123Z
Answers.LastActivityDate: 2021-08-03T17:40:27.123Z
Answers.UserDisplayName: gfaster
Body: <p>I used Calibre to convert my HTML file to EPUB3 and check it with its viewer
  and I notice that a lot of syles are missing !!!!</p>
  <p>so I check the created ebook's files using calibre local editor
  and what I came up with is all div's class has changed (it add calibre1 to each div or change content-block to content-block1 for example )</p>
  <p>so is there any option to ignore those changes?</p>
  <p>mean force calibre to import the file without adding any additional class or divs.</p>
  
Tags: <calibre><html><css>
Title: Calibre is changing HTML content while converting
UserDisplayName: ben ftima wajdi
ThreadText: # Calibre is changing HTML content while converting
  
  (Asked by: username_0 on 2021-06-24)
  
  I used Calibre to convert my HTML file to EPUB3 and check it with its viewer
  and I notice that a lot of syles are missing !!!!
  
  so I check the created ebook's files using calibre local editor
  and what I came up with is all div's class has changed (it add calibre1 to each div or change content-block to content-block1 for example )
  
  so is there any option to ignore those changes?
  
  mean force calibre to import the file without adding any additional class or divs.
  
  **Tags:** calibre, html, css
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-08-03. Score: 1 | Accepted answer
  
  Generally to maximize [compatibility and robustness](https://manual.calibre-ebook.com/faq.html#id33), epub converters will strip as much styling out as possible to still maintain formatting, so I would encourage you to just deal with it.
  
  If you absolutely have to keep original styling you can edit the archive using a program like [7zip](https://www.7-zip.org/). Open the archive and find the .css file within. There is probably significant changes made to classes and ids so it may take quite a bit of fiddling.
  
  
  ---
  
  