SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: Forms

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Feb 2002
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Forms

    OK when i have set out a form and preview it i h8 the way how it looks just the plain white fields, what do i have to do to change the colour of the blackground and also change the border to a thin black line, thinnner that the ones used on this site?

  2. #2
    SitePoint Wizard
    Join Date
    Jul 2001
    Location
    The Netherlands
    Posts
    2,617
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What kind of stylesheet are you using? The code below is written for an external stylesheet, but I assume you know how to adapt it if you don't work with an external stylesheet.

    Take a look at this:

    Code:
    input {
    background-color: #D4D0C8;
    border-bottom: 1px #000000 solid;
    border-right: 1px #000000 solid;
    border-left: 1px #000000 solid;
    border-top: 1px #000000 solid;
    font-family: verdana, arial, helvetica, sans-serif;
    font-size: 10px;
    color: #000000;
    }
    I think this is what you are looking for.

  3. #3
    SitePoint Member
    Join Date
    Feb 2002
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Not really sure

    I am using notepad for my webpage, i add the form and all its components, textfields etc then i want to change them to what i said b4 (thin black border and a diff. coloured background) What do i have to add to make them different colour and where do i add them?

  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)
    You can also shortcut this to work with text areas and select menus (which don't use the <input> tag)

    Same as above with just:

    input, textarea, select {
    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
  •