Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to change the css to affect only id or class instead of input[type=""]
    primarykey
    data
    text
    <p>I like these buttons but i need them to only affect buttons with a unique id (or class). how to change them over? I attempted to do this but it did not work should they be btns in divs with the css on the div or should the button have an id or what?</p> <pre><code>&lt;pre&gt;&lt;code&gt; &lt;html&gt; &lt;head&gt; &lt;style type="text/css"&gt; input[type="submit"], input[type="button"] { -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; } input[type="submit"], input[type="button"] { float: right; margin: 2em 1em 0 1em; width: 10em; padding: .5em; border: 1px solid #666; -moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; -moz-box-shadow: 0 0 .5em rgba(0, 0, 0, .8); -webkit-box-shadow: 0 0 .5em rgba(0, 0, 0, .8); box-shadow: 0 0 .5em rgba(0, 0, 0, .8); color: #fff; background: #0a0; font-size: 1em; line-height: 1em; font-weight: bold; opacity: .7; -webkit-appearance: none; -moz-transition: opacity .5s; -webkit-transition: opacity .5s; -o-transition: opacity .5s; transition: opacity .5s; } input[type="submit"]:hover, input[type="submit"]:active, input[type="button"]:hover, input[type="button"]:active { cursor: pointer; opacity: 1; } input[type="submit"]:active, input[type="button"]:active { color: #333; background: #eee; -moz-box-shadow: 0 0 .5em rgba(0, 0, 0, .8) inset; -webkit-box-shadow: 0 0 .5em rgba(0, 0, 0, .8) inset; box-shadow: 0 0 .5em rgba(0, 0, 0, .8) inset; } input[type="button"] { background: #f33; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="formButtons"&gt; &lt;input type="submit" id="sendMessage" name="sendMessage" value="Reply" /&gt; &lt;input type="button" id="cancel" name="cancel" value="Cancel" /&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; &lt;/code&gt;&lt;/pre&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    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. 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