Dashboards & Visualizations

Applying HTML style to inputs

mbel13131
Explorer

I would like to apply the custom style to a set of inputs. How do I correctly write this code? 

I'm aware of the option to create one style clause for each input ID but this seems ridiculous and the wrong way to do it for, say, 20 inputs.

Cheers.

 

 

<form version="1.1" theme="light">
  <fieldset submitButton="false">
  </fieldset>
    <row>
      <panel>
      <html>
        <style>
          #LineByLine {
            display:flex !important;
            padding-right: 10px;
            padding-top: 5px;
          }
        </style>
      </html>
    </panel>
    </row>
  <row>
    <panel>
      <input id="input1" type="text" token="1">
        <label>1</label>
      </input>
    </panel>
    <panel>
      <input id="input2" type="text" token="2">
        <label>2</label>
      </input>
    </panel>
  </row>
</form>

 

 

 

Labels (1)
0 Karma
1 Solution

mbel13131
Explorer

Never mind, this is a basic question I answered myself by learning about HTML in general (apply style to the div/container wrapped around the input, if someone's looking for this basic answer).

View solution in original post

0 Karma

mbel13131
Explorer

Never mind, this is a basic question I answered myself by learning about HTML in general (apply style to the div/container wrapped around the input, if someone's looking for this basic answer).

0 Karma

mbel13131
Explorer

(just to add though, I can't figure out how to have html style apply to standard child-of-form Splunk input objects)

0 Karma
Get Updates on the Splunk Community!

Earn a $35 Gift Card for Answering our Splunk Admins & App Developer Survey

Survey for Splunk Admins and App Developers is open now! | Earn a $35 gift card!      Hello there,  Splunk ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...

Monitoring Amazon Elastic Kubernetes Service (EKS)

As we’ve seen, integrating Kubernetes environments with Splunk Observability Cloud is a quick and easy way to ...