• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Table cells not resizing for Responsive HTML5 output

Explorer ,
May 26, 2024 May 26, 2024

Copy link to clipboard

Copied

9ptviaparadesigner.png9ptviastylemapping.png The attached images show the different results I get in the Responsive HTML5 output when (all other things remaining the same) I set the cellbody size to 9 pts via either the FM paragraph designer (correct looking image on the left), or via editing the cellbody font size to 9 pts (down from 12 pts) when in the Publish Settings window and selecting Edit Style to decrease the cellbody font size. editstyles.png. Ideally I'd like to decrease the assigned font size in the HTML output (compared to the PDF output), but this issue in the cells is causing me grief. The table has the default cell padding values assigned in the Table Designer (6pt, 6pt, 4pt, 6pt) and I can't decrease these as it messes up the look of the tables in the PDF output. Can anyone shed any light on why this is happening and whether there's a fix or a work around? Thanks!

Views

245

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 26, 2024 May 26, 2024

Copy link to clipboard

Copied

Are you using the options for working with the HTML5 output of the table styles? I believe you can assign percentages to the tables rather than fixed space values.

StudioSm_0-1716792397222.png

 

 


Bjørn Smalbro - FrameMaker.dk

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 27, 2024 May 27, 2024

Copy link to clipboard

Copied

Hi Bjorn, I tried adjusting the cell padding in various places but I couldn't find anything that made any difference except adjusting it via the FM table designer. I added zero cell padding in various .css but nothing took effect and my brain turned to mush trying to work it all out. I'm taking up FM after a 20 year hiatus from it and unfortunately our focus is on creating HTML5 output  - which FM isn't fabulous at. Not the tool I'd choose for the job if I had a viable alternative, but FM it is.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 27, 2024 May 27, 2024

Copy link to clipboard

Copied

Actually the built-in editor isn't too bad. It may take a little time fiddling aroud with settings, but the do mostly work predictably.

I develop FrameMaker templates, and this i a sample table from the Extra Anejo Template:

StudioSm_0-1716796581254.png

These are the HTML5 table settings for publish:

StudioSm_1-1716796735467.png

 

... and this is the resulting published html5:

StudioSm_2-1716796800977.png

 

 


Bjørn Smalbro - FrameMaker.dk

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 27, 2024 May 27, 2024

Copy link to clipboard

Copied

Thanks Bjorn, I agree if that if I was only outputting to HTML or to PDF then this would not be an issue. The problem arises with trying to have a smaller font size in my HTML output than my PDF output. Perhaps I'll need to compromise on both and stick with just one font size.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 27, 2024 May 27, 2024

Copy link to clipboard

Copied

You can edit the relevant paragraph styles in the publishing editor like this:

StudioSm_0-1716797565318.png

I my FrameMaker stylesheet the Cell Body style is 8 pt Corbel. In the stylesheet I export to I have edited the font value to 5 pt. Essentially the HTML5 editor transforms your page based stylesheet to a web stylesheet and you can customize the output so that it resembles the look and feel of you print materials.

An example could be something like this:

This is the pdf version of the Anejo template:

https://framemaker.dk/en/?view=article&id=345:anejo-pdf&catid=70

... and this is the HTML5 version of the printed materials:

https://framemaker.dk/images/2019/FMtemplates/Anejo/index.html#t=Anejo%2FAnejo_Front_Page%2FAnejo_Fr...

 

 


Bjørn Smalbro - FrameMaker.dk

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 27, 2024 May 27, 2024

Copy link to clipboard

Copied

Hi Bjørn,

I had not used this setting yet. Can you set the width of all columns only to the same value?

Best regards, Winfried

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 27, 2024 May 27, 2024

Copy link to clipboard

Copied

Hi Janette,

When I see your screenshots, I think that there must be an addional setting that is changed, when you select "Edit Style".

Can you compare the CSS file with the default cellbody setting with the CSS file after you selected Edit Style and changed the font size to 9 pt?

Best regards, Winfried

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 27, 2024 May 27, 2024

Copy link to clipboard

Copied

Hi Winfried, I don't know where to see the .css that shows the default settings. If i'm on the Publish Settings screen and select Manage CSS to export the .css, then i think that shows the default HTML styles but not the default FM styles. Is there a .css showing the default FM styles?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 27, 2024 May 27, 2024

Copy link to clipboard

Copied

I meant the CSS with the paragraph style not changed in the Publish pod but in the FrameMaker cell paragraph and the paragraph style after you edited it to 9 pt in the Publish pod.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 27, 2024 May 27, 2024

Copy link to clipboard

Copied

The formatting in the HTML output is best handled by creating CSS to address your issues. 

Relying on Fm's built-in interpretation of "print" formatting for your web delivery will be difficult.

You may need to create specific paragraph and character tags to convert to CSS classes, and you may need to create various CSS for the table parts as well.

-Matt

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 27, 2024 May 27, 2024

Copy link to clipboard

Copied

Hi Matt, I think you're probably right. I'm seeing some weird and wonderful things in the HTML output. I was hoping that FM had a more suitable out of the box solution.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 27, 2024 May 27, 2024

Copy link to clipboard

Copied

LATEST

There are some truly great things about the HTML output.

But at its core, if you don't identify your FrameMaker styles (character, para, and others) and take the time to describe the correct HTML formatting via CSS, it's like almost all other plain vanilla outputs; it's great for a first pass.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines