You need to sign in to do that
Don't have an account?
Field alignment in grid
I'm attempting to create a custom grid to display values from a single object record. The page will be use in both View and Edit modes, and looks OK when in Edit mode (displaying inputFields). I have yet to find a good option to keep the alignment consistent when simply viewing the data in a read-only state. In this mode, I'd like to use outputField to retain the correct formatting of data.
Here are some screens. It's probably difficult to see, but the row/column headers (Type 1, Type 2... Count 1, Amount 1..) are being rendered as Labels. I'd like to keep the formatting the same here as on standard field labels.
1: Edit mode, no issues.
2: View mode, obvious alignment issues:
Post your vforce code so we can have a look.
Here's a snippit including buttons, dropdown, top-level labels and the first row of data: