Skip navigation
Currently Being Moderated

problem inserting an image

Aug 7, 2012 8:21 AM

I have a div tag  that's 100x100 px.  I have an image I created in photoshop that is 100x100 pixels, but for some reason when I insert the image into the div tag it extends beyond the 100x100 and doesn't insert exactly into the div tag.  Any suggestions as to why this is happening.

 
Replies
  • Currently Being Moderated
    Aug 7, 2012 8:30 AM   in reply to dawnnolan54

    Upload the problem page to a website, and post the URL. It's only by seeing the code and the image that anyone can help you.

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 7, 2012 8:55 AM   in reply to dawnnolan54

    Do you have a padding set in the CSS of the div tag?

     

    Could there be a space or other text characters in the div tag that are pushing the image out?

     

    As David noted, a link to the offending page (even if it's just a temporary page uploaded to a temporary folder on your site) would get you better answers.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points