Side-by-side – shading odd columns Home › Forums › Classic DFFS › Side-by-side – shading odd columns This topic has 9 replies, 2 voices, and was last updated 8 years, 1 month ago by Michal Riha. Viewing 9 reply threads Author Posts June 9, 2016 at 13:55 #11963 Michal RihaParticipant Hi Alexander, is it possible easily (not field css) shade odd colums? Thanks Michal Attachments:side-by-side-shadow.png June 12, 2016 at 20:33 #11987 Michal RihaParticipant Solved: .sbs_tdIndex_2 input, .sbs_tdIndex_4 input, .sbs_tdIndex_6 input, .sbs_tdIndex_8 input { background-color:#fbe4e5 !important; } Michal Attachments:12-6-2016-21-34-50.png June 12, 2016 at 21:36 #11991 Alexander BautzKeymaster I’m glad you figured it out. Alexander July 6, 2016 at 20:08 #12265 Michal RihaParticipant Hi Alexander, is there any simple way how to do it in display form? I consider that there is only one possibility – use field CSS (for each individual field)… The aim is to show display form in the same visual style as edit form = like “form” – values are in a frame (like in screenshot attached). Michal July 7, 2016 at 16:35 #12285 Alexander BautzKeymaster Hi, You can try something like this in the custom css: .sbs_Field .dffs_tdWrap{ border:1px red solid; padding:3px; } You must obviously change the color and other style, but you get the picture. Alexander July 13, 2016 at 10:56 #12348 Michal RihaParticipant Hi Alexander, thanks, it works (for every “table” cell) I suppose that shade odd colums must be done via Field CSS.. Michal July 17, 2016 at 12:57 #12391 Alexander BautzKeymaster Sorry for the delay – you can use this CSS to shade odd columns in a side-by-side setup: tr.sbs_OuterTR:nth-child(odd){ background-color:red; } Alexander August 9, 2016 at 13:02 #12745 Michal RihaParticipant Hi, it is not working for me in displayform. Michal August 9, 2016 at 21:42 #12779 Alexander BautzKeymaster Sorry, my bad – the nth-child selector will not work in IE 8. Try this in the custom js – call the function “colorOddRows” in a rule with trigger “selected tab index” = the tab where you use the SBS. function colorOddRows(){ $("tr.sbs_OuterTR:odd").css({"background-color":"red"}); } Alexander October 27, 2016 at 10:50 #13826 Michal RihaParticipant Thanks Alexander, works nice. Michal Author Posts Viewing 9 reply threads You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In