> in a form without classes or identifiers? I am trying to create a form inside the Userlist plugin in the Wish...">

Is it possible to create "w180 >> in a form without classes or identifiers?

I am trying to create a form inside the Userlist plugin in the Wishlist, and there is no template where I can physically log in and add classes, id, etc. So I was wondering if there is a style up method <input type="submit">without a class or id without affecting the fields <input type="text">using javascript. Thank.

+3
source share
3 answers

You can add style with CSS even if there is no class / id. The following selects all elements inputwith an attribute type="submit":

input[type="submit"]{
   /* style */
}

The above is very general, it is better to be more exclusive. Therefore, include some of his parents, preferably those with an identifier / class:

div#someID form input[type="submit"]{
   /* style */
}

( , <div id="someID">)

+3

input[type=submit] {
    yourCss
}
+2

I have only 13 points, so I can’t leave comments, and this is where it belongs. But it is important to note that:

input[type="submit"]{
/* style */
}

should have a style background:somestyle;stylized for it to work (with the exception of IE6, of course).

0
source

Source: https://habr.com/ru/post/1764920/


All Articles