www.webdeveloper.com
Results 1 to 2 of 2

Thread: image not displaying

  1. #1
    Join Date
    Jul 2012
    Location
    Vantaa, Finland
    Posts
    125

    image not displaying

    I am trying to display an image by using css. The code isn't working. Nothing is displayed.

    I have tried this code;

    Code:
    #head-photo {background-image: url('http://what-do-christians-believe.co.uk/wpimages/people-2d.jpg');
                 max-width: 30em;
                 max-height: 15em;}
    I currently have this code in the css file;

    Code:
    #head-photo {maximum-width: 62.50em;
                 maximum-height: 14.70em;
                 margin: 0 auto;
                 background: url(http://www.what-do-christians-believ.../people_2d.jpg) no-repeat center scroll;
    }
    The html code for the image is;

    HTML Code:
    <div id="head-photo"> ///also tried putting </div> here
              </div>
    You can see what happens here. The image in the text box is in the html file. For some reason the larger image was rejected and the validation said to use css instead.

  2. #2
    Join Date
    Jan 2004
    Location
    chertsey, a small town s.w. of london, england.
    Posts
    1,460
    This problem has now been addressed in this post...
    coothead

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