Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: CSS Help

  1. #1
    New Coder
    Join Date
    Aug 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CSS Help

    Hello there,

    I am not new to CSS, although I have a question:

    How do I make my CSS have a background image for a user inputted area?

    An example would be if I have a contact us form and there is a name input and i want to make the background of the name input to /images/blah.gif

    Thanks!

  • #2
    New to the CF scene
    Join Date
    Aug 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Like so:

    Put this in your body {} or a div.

    Code:
    background-image: url([imageurl]);
    It can, of course, also be used in a style attribute.

  • #3
    Regular Coder Jutlander's Avatar
    Join Date
    Jun 2007
    Location
    In my own sick little world :P
    Posts
    425
    Thanks
    1
    Thanked 12 Times in 12 Posts
    Quote Originally Posted by Bookworm9405 View Post
    Put this in your body {} or a div.

    Code:
    background-image: url([imageurl]);
    That wouldn't do what he wanted. That would just put a backgroundimage to the body or a div...

    I would think this is what you're after.

    Code:
    input {
    background: url(image_name.gif);
    }
    .
    .

  • #4
    New Coder
    Join Date
    Aug 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Jutlander View Post
    That wouldn't do what he wanted. That would just put a backgroundimage to the body or a div...

    I would think this is what you're after.

    Code:
    input {
    background: url(image_name.gif);
    }
    Thank you, that worked. I gave you rep!
    Last edited by FinishUpper; 08-04-2007 at 07:32 PM. Reason: I forgot to add something :D


  •  

    Posting Permissions

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