Label class wrapping my custom_html

Support MB Frontend Submission Label class wrapping my custom_html

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #43717
    YasmineYasmine
    Participant

    The rwmb-label class is wrapping my custom_html and I cannot display:none the rwmb-label without my custom_html disappearing too. I have tried :not(TheClassesIAddedToTheHTML), adding !important etc. But cannot separate the two classes because of the wrapping. How do I fix this?

    So to clarify without .rwmb-label label:not(.rwmb-custom_html-wrapper){
    display: none;
    } it shows both the rwmb-label and my custom_html field.

    With .rwmb-label label:not(.rwmb-custom_html-wrapper) {
    display: none;
    } It shows neither.

    #43718
    YasmineYasmine
    Participant

    So typical! After despairing for over an hour, as soon as I send this I realise I had the value in 'name' => not 'std' =>

    Although, I still feel I should have been able to have targeted those labels within the custom_html field to be ignored using the css

    #43719
    PeterPeter
    Moderator

    Hello,

    I suggest you use the Inspect tool of the browser to check the HTML structure and create a correct CSS code https://developer.chrome.com/docs/devtools/open/

    If you want to target the label of custom HTML field, you can try this CSS selector:

    .rwmb-custom_html-wrapper label {
     ...
    }
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.