Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

Question

image okay in PhotoShop but too small in the html file

Sep 8, 2013 7:14AM PDT

I was provided a png file to place in a web page.
In Photoshop the image's width was changed to fit specifications of my html file. Both files (photshop png and html) are in pixels. Yet when I saved the new png and placed it in the html file it comes out too small!

Do you know why?

Discussion is locked

- Collapse -
Clarification Request
Without seeing the html code that placed the image?
Sep 8, 2013 7:25AM PDT

No.

- Collapse -
here is the coding
Sep 8, 2013 10:23AM PDT
http://www.frankfordfriendsschool.org/give-fundFFSnew.html

My problem is the rectangular box that follows (in red) "Click here to begin".
Size of the .png is 335px x 143px

I've tried converting the .png to a .gif but same problem.

Wait a minute, could the problem be:
<style type="text/css">
#content img{ /* for DONATE ICON */
height:40px;
border:none;
float:right;
padding:5px 5px 0 10px;
}
</style>
- Collapse -
problem solved
Sep 8, 2013 10:36AM PDT

Yes, that css style was causing the problem!!! Gee, i took many, many hr.s to realize this! I could've saved lots of time if I posted this long ago and you would've figured it out!

Thanks for your help anyway! Blush

- Collapse -
I've lost count of debugging meetings where.
Sep 9, 2013 2:33AM PDT

"I have this problem"
Up goes the first slide on the projector.

"Uh, nevermind."
Bob