I am trying to use

.content {
  max-width: 8rem;
  margin: 0 auto;
  display:flex;
  flex-direction: column;
}

In the HTML code generated by tex4ht.

But for this to work, the layout of HTML has to be in this form

 <body>
    <div class=content>
       EVRYTHING generated by tex4ht goes here
    </div>
  </body>

I am following the example at this page

https://jsbin.com/fimoluqehi/edit?html,css,output

I can add the display:flex; flex-direction: column; to the CSS for the body itself, since I use my own .css file for the all pages generated by tex4ht.

But this does not work as well in the body tag. It seems to need to be its own class as shown above.

I just do not know how to tell tex4ht to generate <div class=content> right AFTER <body> and close it right BEFORE </body>, for every page generated just like in the above example.

I can add the code

.content {
  max-width: 8rem;
  margin: 0 auto;
  display:flex;
  flex-direction: column;
}

To my own .css file. But the issue is how to tell tex4ht to generate the DIV itself.

Could this be done in the .cfg file somehow? I do not want to edit each HTML page by hand and add the <DIV> .... </DIV>.

Any ideas?

Thanks
--Nasser


Reply via email to