I’ve been trying to align text and images in the same row but the following is happening:
This is how it looks in the Madcap source file:
And this is the code:
Do I need to create a new CSS to be implemented withing the table row or update the Table Style Sheet?
I know this is a Style Sheet issue, but not sure if I need to update the CSS or Table Style Sheet.Text and images alignment in table
-
- Propeller Head
- Posts: 12
- Joined: Tue Oct 04, 2022 8:10 pm
Text and images alignment in table
You do not have the required permissions to view the files attached to this post.
-
- Sr. Propeller Head
- Posts: 248
- Joined: Thu May 24, 2018 3:11 pm
- Location: Queensland, Australia
Re: Text and images alignment in table
The differences between the three brake icons aligning differently with text are because the first is in a set of para tags and the second and third are not. Each pair would have to be in a <p><img src="something" />Text here</p> structure. The first icon row is how it would normally be displayed with this structure.
I'd be tempted to split the cell into three rows and two columns then place the icons in the first column and description text in the second column. Then you should be able to vertical align the text/icon pairs how you want.
Rob
I'd be tempted to split the cell into three rows and two columns then place the icons in the first column and description text in the second column. Then you should be able to vertical align the text/icon pairs how you want.
Rob
-
- Propeller Head
- Posts: 12
- Joined: Tue Oct 04, 2022 8:10 pm
Re: Text and images alignment in table
Thank you for your response Rob.
I moved the images to it's own column, and the text are now nicely aligned. Unfortunately I can't seem to get the images centered and tried to edit CSS but still no joy: Again, here is the relevant code: And the Madcap input: Please advise if these images can be centered, or if this is the best I could get?
I moved the images to it's own column, and the text are now nicely aligned. Unfortunately I can't seem to get the images centered and tried to edit CSS but still no joy: Again, here is the relevant code: And the Madcap input: Please advise if these images can be centered, or if this is the best I could get?
You do not have the required permissions to view the files attached to this post.
-
- Sr. Propeller Head
- Posts: 248
- Joined: Thu May 24, 2018 3:11 pm
- Location: Queensland, Australia
Re: Text and images alignment in table
The centring will depend on a few things so you'd have to do a bit of investigation to work out where the space is coming from:
Rob
- The image graphic itself might contain white space - you'd need to edit the image outside of Flare to change this
- The image might have padding or margin in the img style.
- The table cell (td) could have some padding inside it.
- The table row (tr) might have a height definition that is larger than the image height and the vertical-align of the row set to 'top'.
Rob