Matrix Preview w/CSS Not Displaying Correctly

  • Profile Image
    earthdaysf
    Asked on April 04, 2013 at 06:14 PM

    #cid_1  .form-matrix-row-headers +.form-matrix-values +.form-matrix-values .form-textbox {

    width:200px;

    }

    this does work. But it does not show preview correctly in the form designer.

  • Profile Image
    EltonCris
    Answered on April 04, 2013 at 07:13 PM

    @earthdaysf

    That's because of the #cid_1, that works actually but would prefer to us #id_1 as it holds all the sub fields under it. That should be displayed on the form builder.

    Try it and let us know the result. Thanks!

  • Profile Image
    earthdaysf
    Answered on April 04, 2013 at 11:00 PM

    ok, but why? 

    this screenshot shows the matrix ID is #cid_33, not #id_33. 

    where does #id_33 come from? why isn't it in the source?

    thx!

  • Profile Image
    EltonCris
    Answered on April 05, 2013 at 12:59 AM

    It's there! :)

    It's an li ID of the main element just above cid_33. I have highlighted it on your screen below.

  • Profile Image
    earthdaysf
    Answered on April 06, 2013 at 12:31 PM

    ok, i see, that's the id of the li which surrounds both the matrix and the label above the matrix. The form editor cannot preview css on the matrix itself, only on the li surrounding the matrix. 

    would be more accurate, i think, to be able to preview both.