Home › Forums › Classic DFFS › Side-by-side – shading odd columns
- This topic has 9 replies, 2 voices, and was last updated 9 years, 6 months ago by
Michal Riha.
-
AuthorPosts
-
-
June 9, 2016 at 13:55 #11963
Hi Alexander,
is it possible easily (not field css) shade odd colums?
Thanks
MichalAttachments:
-
June 12, 2016 at 20:33 #11987
Solved:
.sbs_tdIndex_2 input, .sbs_tdIndex_4 input, .sbs_tdIndex_6 input, .sbs_tdIndex_8 input { background-color:#fbe4e5 !important; }Michal
Attachments:
-
June 12, 2016 at 21:36 #11991
I’m glad you figured it out.
Alexander
-
July 6, 2016 at 20:08 #12265
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
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
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
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
Hi, it is not working for me in displayform.
Michal
-
August 9, 2016 at 21:42 #12779
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
Thanks Alexander,
works nice.
Michal
-
-
AuthorPosts
- You must be logged in to reply to this topic.

