Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2002
    Northern Ireland

    CSS code for an image...

    Sorry about bring up another topic, but I need some help on a CSS code. This isn't something I'd ask, but considering I can't open any of my design programs its my only option..

    Does anybody know the CSS code for insert a background image?

    I want to set a background image instead of a normal colour.. I don't even know if this can be done because I've never done it before, but if it can then I'd appreciate somebodies quick reply to tell me the code.

    /* Misc./title/category colors */
    .hr { color: #000000; }
    .titlebg { background-color: #008000; color: #FFFFFF; }
    .text1 { font-style: normal; font-weight: bold; font-size: 12px; color: #FFFFFF; }
    .catbg { background-color: #CEDECE; **** color: #000000; font-weight: bold; font-size: 13px; }
    .bordercolor { background-color: #000000; }
    What do I put in if i wish to insert a background image (where the **** are) instead of just having a colour?

  2. #2
    Join Date
    Aug 2001
    background-image: url(directory/file.ext);

  3. #3
    Originally posted by Phrozen
    background-image: url(directory/file.ext);

  4. #4

Posting Permissions

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