Skip to content

Instantly share code, notes, and snippets.

@jameshibbard
Created December 9, 2012 19:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jameshibbard/4246581 to your computer and use it in GitHub Desktop.
Save jameshibbard/4246581 to your computer and use it in GitHub Desktop.
Two select menus with which a user can choose background and text colour
<p>Select the background colour:
<select class="selector">
<option value="background-default">Default</option>
<option value="background-blue">Blue</option>
<option value="background-green">Green</option>
<option value="background-red">Red</option>
</select>
</p>
<p>Select the text colour:
<select class="selector">
<option value="color-default">Default</option>
<option value="color-yellow">Yellow</option>
<option value="color-white">White</option>
<option value="color-purple">Purple</option>
</select>
</p>
<button id="reset">Reset ALL the styles</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment