SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2002
    Location
    Mumbai- India
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    color of Input Box ..How do i change its width and color of text to be typed?

    I wan tto change the color of Input Text Box color and also the color of text to be typed in the same

    Please inform me as soon as possible

  2. #2
    . Ruchir's Avatar
    Join Date
    Feb 2002
    Location
    Sydney
    Posts
    1,863
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what exactly are looking for ? if i understand what u want... u want to change the background of the text box-->

    add style="background:#hexcode" in ur form bracket...

    eg->
    Code:
    <input type="text" style="background:#000000" value="Guess">
    Peace.

  3. #3
    Made with a Mac! philm's Avatar
    Join Date
    Sep 2001
    Location
    Portsmouth, UK
    Posts
    735
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: color of Input Box ..How do i change its width and color of text to be typed?

    Originally posted by vikaspa
    Please inform me as soon as possible
    Surprised you got a reply at all

  4. #4
    SitePoint Wizard Bill Posters's Avatar
    Join Date
    Dec 2001
    Location
    UK
    Posts
    1,523
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's a touch better to keep the guts of the CSS apart from the structural markup.

    Within the <head>...
    Code:
    <style type="text/css">
    .classname {
    background: #fc0;
    color: #f00;
    font: 30px Georgia;
    height: 40px;
    width: 200px;
    }
    </style>
    Within the <body>...
    Code:
    <input type="text" ... class="classname" />
    New Plastic Arts: Visual Communication | DesignateOnline

    Mate went to NY and all he got me was this lousy signature


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •