I am formatting some tables and i would like to work with the vertical justification of text in the cells, but I can not find the controls. There are controls for horizontal justification though. I am overlooking something for sure but where?...
Copy link to clipboard
In the CSS editor for Table Styles, you will find Vertical Alignment section under CELLS tab.
Aha - Great. Thank you! It seems odd, that this is not an option for over rides like horizontal formatting, but I suppose there is a reason for that.
I had the same question. I found the Vertical alignment under the Cells tab, but couple of surprising outcomes:
- I was using the default.css. The Cells tab was not found in that css.
- I then used a template css that I had imported where I found the Cells tab and applied the Vertical alignment but it didn't seem to change anything in the table. What am I missing?
default.css shipped with product doesn't have any table style, you will have to create one.
Thank You, Vivek. That helped!
I added the vertical align attribute for table to the default CSS, but the alignment still doesn't update.
What should I do?
Please and thanks,
@Vish 1 You'll only see an alignment in the table cells if the row heights are taller than the content in the cells, either because one cell has a lot of content, or because you've set a row height.
What specifically did you set, what do you expect to see and what do you actually see? Some screenshots may help illustrate your issue.
Please use the blue reply button at the top of the page so posts are sorted correctly.
I have a table with text and images. The image size is bigger than the text in the adjacent column. I added the attribute of vertical align top to the CSS. But it doesn't change the position of the text. Attached is an image for your reference.
To make sure we're talking about the same thing, check you've applied the style to your table. You can check what style is applied on the Styles tab, with Table Styles selected in the dropdown list at the top of the tab.
And then this is where in the style the vertical alignment is set:
Which should result in this alignment:
Let us know if that helps.
I have done as shown. Please see ics attached. But after I save the top-align in the cell style and exit, it automatically changes back to middle align when I reopen.
If the style is not remembering the setting I'm not sure what's going on, as I tried in both RH2019 Update 3 and RH2020.3 and all I had to do was change the table style as illustrated. Maybe the file got set to read only somehow (there's no source control involved is there?).
If it's just the table not correctly displaying the style you defined, perhaps you have inline styling that will override the table style. Can you select a row, switch to Source view and post a sample of code that includes the tr and td tags?
No source control.
Here is the code.
There isn't any inline formatting that would be overriding the style.
So what you are saying is that you open the stylesheet, change the alignment from Middle to Top, save, then close the stylesheet. Then when you reopen the stylesheet the alignment is reset to Middle?
My only other ideas are that the stylesheet is set to read only - you'll have to check that using File Explorer. Or you are on a version of RH that has a bug. What version are you on? You can check under the Help menu.
1. Yes, the CSS resets, not changing from Top to Middle, but altogether deletes the attribute.
Whereas RH resets to middle.
2. I used a 2nd CSS with just the alignment class and that too doesn't work. Same thing happens, the attribute gets deleted.
3. I have checked the CSS on Explorer and it is not set to read-only.
4. Version is 2020.2.29
The only thing that works is an inline tag in the <td>. But this is not ideal as I have numerous files and tables.
Try updating to Update 3, which is currently the latest.
I don't really understand what you're saying for 1. and 2. Can you show what you are doing with the second CSS?
Copy link to clipboard
Try applying Update 3.
See www.grainge.org for free Authoring and RoboHelp Information
Thanks Amebr and Peter,
Works fine with Update 3.