Coloured input tags

Discussion in 'HTML & Website Design' started by NeilEvan, Mar 7, 2007.

  1. #1
    IM having some trouble, i have designed a page which has a login and passord as input tags.

    When i add the input tags they always appear as white boxes, is there anyway i can make then transparent or select a colour for an input tag so it molds into my design better.

    Any ideas?

    or do i need to use anotehr method like javascript?

    The problem i am having with javascript is that the more i add the more clashes i get with other javascript on my page, like the left navigation i have.

    Unfortunately i cant show the page.

    Regards
    Neil
     
    NeilEvan, Mar 7, 2007 IP
  2. Katy

    Katy Moderator Staff

    Messages:
    3,490
    Likes Received:
    513
    Best Answers:
    7
    Trophy Points:
    355
    #2
    You can do this with CSS:

    .login {
    background-color: #000000;
    color: #ffffff;}

    then add class="login" to your input tag. :)
     
    Katy, Mar 7, 2007 IP
  3. rgchris

    rgchris Peon

    Messages:
    187
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Or, in that same thread of thought, you could use the background-image property in case you wanted an image instead.
     
    rgchris, Mar 7, 2007 IP