#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Location
    Argentina
    Posts
    115
    Rep Power
    11

    Question <SELECT> element using full CSS ???


    Hi all,

    This is my first post as I just discovered this site so... hello everyone.

    I am developing a site using PHP and the style is given by a .css file. I have the following css selector for the input elements but this class doesn't work with <SELECT> elements... what can I do? I want everything to look the same.
    Code:
    input.inputinfo {
    	color : Black;
    	font-size : 10px;
    	font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
    	font-style : normal;
    	font-variant : normal;
    	font-weight : normal;
    	border-style : solid;
    	border-width : 1px;
    	border-color : #cccccc;
    }
    Thanks in advanced
    icaam
  2. #2
  3. No Profile Picture
    The Forest
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2002
    Posts
    321
    Rep Power
    13
    Change this:

    Code:
    input.inputinfo {
    ...to this:

    Code:
    input.inputinfo, select.inputinfo {
    Or really, you just make the rules apply to the form element.

    Hope that helps!

    Happy coding!
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Location
    Argentina
    Posts
    115
    Rep Power
    11
    Thanx a lot... it worked. I also tried placing just the class:

    Code:
    .inputinfo {
    and it worked fine too!

    Happy new year!
    icaam

IMN logo majestic logo threadwatch logo seochat tools logo