PtrNrs
Member
As convert from Fabrik 2.x to 3.x, I note that the styling has changed considerably.
In 2.x, each element including labels has its own ID, therefore allowing individual styling of elements.
In 3.x, that is no longer the case eg the following HTML for a Display element with Show Label = No:-
Note that the text appears in the leftCol div (is this a bug?), so I need to individually style the left column for this element (I want to stretch the text across the full container).
In my custom_css.php, I know I can style the leftCol or the fabrikLabel div, but that changes all elements in the form. I also know that I can individually style #ak7fo_ace_course_selection___crsIntrotext but there's no text there anyway.
How, then, do I individually style the text for this element?
In 2.x, each element including labels has its own ID, therefore allowing individual styling of elements.
In 3.x, that is no longer the case eg the following HTML for a Display element with Show Label = No:-
HTML:
<li style="clear:both;width:100%;" class="fabrikElementContainer display">
<div class="displayBox">
<div class="leftCol">
<label for="ak7fo_ace_course_selection___crsIntrotext" class="fabrikLabel ">
Text in here . . .
</label>
<span class="fabrikErrorMessage"></span>
</div>
<div class="fabrikElement">
<div class="fabrikSubElementContainer" id="ak7fo_ace_course_selection___crsIntrotext">
</div>
</div>
</div>
</li>
In my custom_css.php, I know I can style the leftCol or the fabrikLabel div, but that changes all elements in the form. I also know that I can individually style #ak7fo_ace_course_selection___crsIntrotext but there's no text there anyway.
How, then, do I individually style the text for this element?