Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The short answer is you can't, reliably. If you're trying to make it work in a number of commonly used browsers such as IE6, 7, Firefox etc you'd have to rely on JavaScript rather than CSS to identify elements within your document that fit your rules for styling and apply a class to each one of those elements.</p> <p>For cross-browser compatibility, you'd need to wrap arrayed field labels in a classifying element or apply classes to the labels to separate them from normal labels.</p> <p>What I would do here is wrap the <strong>list</strong> of <strong>radio options</strong> in an (un)ordered list (for semantic meaning), and normal text fields in a single paragraph. </p> <p>E.g. Normal Name:Value pair:</p> <pre><code>&lt;div class="form_row"&gt; &lt;label for="txtFirstName"&gt;First Name&lt;/label&gt; &lt;p&gt; &lt;input type="text" class="text" name="firstName" id="txtFirstName" /&gt; &lt;/p&gt; &lt;/div&gt; </code></pre> <p>And then for a Name:Array pair:</p> <pre><code>&lt;div class="form_row"&gt; &lt;label&gt;Gender&lt;/label&gt; &lt;ul&gt; &lt;li&gt;&lt;label for="rdoGenderMale"&gt;&lt;input type="radio" class="radio" name="gender" id="rdoGenderMale" value="male" /&gt;&amp;nbsp;Male&lt;/label&gt;&lt;/li&gt; &lt;li&gt;&lt;label for="rdoGenderFemale"&gt;&lt;input type="radio" class="radio" name="gender" id="rdoGenderFemale" value="female" /&gt;&amp;nbsp;Female&lt;/label&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; </code></pre> <p>Now to style it appropriately, you write your normal rules for Name labels:</p> <pre><code>div.form_row label {font-weight:bold;} div.form_row ul {list-style:none;} div.form_row ul label {font-weight:normal;} </code></pre> <p>hth, ndorfin</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload