Currently, I am developing a rating stars field within a form. Unfortunately, the HTML structure is predetermined by Gravity Forms and cannot be altered. However, I am exploring ways to manipulate it using CSS.
The form layout is set up as follows:
<ul>
<li>
<input type="radio" value="5">
<label>5</label>
</li>
<li>
<input type="radio" value="4">
<label>4</label>
</li>
<li>
...
</li>
</ul>
I have referenced this example for guidance. However, due to this specific structure, the [input/label]
elements do not align as siblings with one another.
Is there a way to achieve proper functionality without adjusting the markup directly?
Your assistance is greatly appreciated!