www.webdeveloper.com
Results 1 to 6 of 6

Thread: Can I have more than one background image. Or is it just normal image for second one.

  1. #1
    Join Date
    Apr 2012
    Posts
    110

    Can I have more than one background image. Or is it just normal image for second one.

    I want to put a much smaller image in the center under the paragraph text now, must I make another section in css saying body{ } or do I just make it a normal image to put on page. But I want it under the paragraph text in the center.

    Get confused what is a background image and what isnt as my first large image is like a banner ontop of the page going across rectangularly. That image I put under background-image:url (........)

  2. #2
    Join Date
    Apr 2012
    Posts
    110
    I put the following code in:
    img.x {z-index:0; left:280px; postion:absolute; top:400px; width:430px; height:500px; background-image:url ("../spencer/Pictures/girltemp1.png")}

    <img class="x"; src="../Pictures/girltemp1.png; alt="girlfriend1.png"; alt="girltemp1.png"; id="girltemp1">Then the contents</p>

    Everthingh is positioned etc, but the image still wont display, just a large x box, but no actual image.

  3. #3
    Join Date
    May 2005
    Location
    Gold Coast (MS)
    Posts
    2,208

  4. #4
    Join Date
    Mar 2009
    Posts
    452
    <img class="x" src="../Pictures/girltemp1.png" alt="girlfriend1.png" alt="girltemp1.png" id="girltemp1">Then the contents</p>

  5. #5
    Join Date
    May 2005
    Location
    Gold Coast (MS)
    Posts
    2,208
    Quote Originally Posted by wildguy2 View Post
    I put the following code in:
    img.x {z-index:0; left:280px; postion:absolute; top:400px; width:430px; height:500px; background-image:url ("../spencer/Pictures/girltemp1.png")}

    <img class="x"; src="../Pictures/girltemp1.png; alt="girlfriend1.png"; alt="girltemp1.png"; id="girltemp1">Then the contents</p>

    Everthingh is positioned etc, but the image still wont display, just a large x box, but no actual image.
    1) Should be spelled: position.

    2) Missing quote at end of png.

  6. #6
    Join Date
    Apr 2012
    Posts
    110

    thanks Major Payne. Will try that.

    thanks, will try that, Dont think Im cut out for the nitty gritty stuff, prefer graphics, but must finish my project.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles