Results 1 to 4 of 4

Thread: How to have a transparent background image for html pages

  1. #1
    Join Date
    Nov 2009
    Posts
    518

    How to have a transparent background image for html pages

    I am working on a project, where i need to have a fixed background image for all my pages. the problem is that i have a lot of <div> boxes and text in those. I want the text to be over the image, with the image being transparent. can i place an image in a <div> instead of the color

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    re: How to have a transparent background image for html pages

    You can simply add the image to the background by adding the following code to CSS of the <div> you want to carry the image; background-image: url("../images/background.gif"); and then move on to re-size the <div> to what is required. i would advise against using a large image as that might just take a long time to open.
    Last edited by Praetor; 03-11-2009 at 03:27 PM.

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    re: How to have a transparent background image for html pages

    I have not used the <div> much, but i have used the following code in the <table> to add image to the background; background="the http address of the image". Try it, it might work.

  4. #4
    Join Date
    Nov 2009
    Posts
    518

    Re: How to have a transparent background image for html pages

    I had tried using the background with the <div> as well as tried including background-image in the CSS of the <div> i have used. But it does not seem to work. Thanks for the help extended buddies, maybe i will try some more in depth debugging of my code by myself.

Similar Threads

  1. SWF with transparent background
    By mati in forum Software Development
    Replies: 6
    Last Post: 04-10-2010, 09:32 PM
  2. Creating input text with background image in HTML
    By Measurer in forum Software Development
    Replies: 4
    Last Post: 23-12-2009, 10:13 PM
  3. A transparent background with Illustrator EPS
    By Lishi in forum Customize Desktop
    Replies: 3
    Last Post: 12-03-2009, 09:59 PM
  4. Avatar with transparent background?
    By Onen in forum Technology & Internet
    Replies: 3
    Last Post: 17-11-2008, 01:43 PM
  5. Transparent background images
    By katsumoto in forum Customize Desktop
    Replies: 5
    Last Post: 01-10-2008, 03:07 PM

Tags for this Thread

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
  •  
Page generated in 1,714,002,395.53564 seconds with 17 queries