WestTexasKen Posted May 26, 2011 Report Share Posted May 26, 2011 How do I set the alignment of specific columns in a results and/or details page? I want the currency to be right aligned, names left aligned, etc. Right now it seems alignment settings for columns is global. How do I do this? Can I do my own custom CSS or something along those lines? Thanks, Ken Grimm Site manager for gosanangelo.com EW Scripps newspapers Quote Link to comment Share on other sites More sharing options...
0 Aariel Posted May 26, 2011 Report Share Posted May 26, 2011 Hi Ken, If you are using a list report, you can insert a HTML Block in your 'Configure Results Page Field' and display the field name and value from it. You can provide them your own html styles. for e.g: the code in HTML Block in one of my datapage is as below:Name :[@field:name_field]here, Name is the label, and [@field:name_field] will produce the value in that field. You can get the syntax automatically(there is a small button on the lower right of the wizard. You can see when you insert HTML Block). This HTML Block is really nice, we can create a and place the field in any desired column() I suppose it accepts all HTML tags:)) hope this helps. Quote Link to comment Share on other sites More sharing options...
0 WestTexasKen Posted May 27, 2011 Author Report Share Posted May 27, 2011 You are my newest hero. Works beautifully! Quote Link to comment Share on other sites More sharing options...
0 RuisiHansamu Posted October 5, 2022 Report Share Posted October 5, 2022 Hi there, There are times that this is not able to display correctly on some of my users. Then, I figured that using the !important property in our style. What we did is first, go to the Styles > Click Source > Select 'All' > Search or Ctrl+F and paste the name of the cell name that you have, in our case it is .cbResultSetTableCell > From there, make sure to insert the !important at the end of the text-align. Here is a brief example on our part: -----------Start------------text-align: left !important;-----------End------------ For more information about the property: https://www.w3schools.com/css/css_important.asp#:~:text=The !important rule in CSS,specific property on that element! For your reference, here is the article for the styles: https://howto.caspio.com/styles/creating-or-editing-style/ Hope this helps. Cheers. Quote Link to comment Share on other sites More sharing options...
0 autonumber Posted October 5, 2022 Report Share Posted October 5, 2022 Hello! This forum post might be helpful as well. Quote Link to comment Share on other sites More sharing options...
Question
WestTexasKen
How do I set the alignment of specific columns in a results and/or details page?
I want the currency to be right aligned, names left aligned, etc. Right now it seems alignment settings for columns is global.
How do I do this? Can I do my own custom CSS or something along those lines?
Thanks,
Ken Grimm
Site manager for gosanangelo.com
EW Scripps newspapers
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.