In my web site created by DreamWeaver CS3 I have this in an external css file:
#maincontent p {
font-size:2.5em;
font-weight:bold;
margin-top: 70px;
background-image: url(Images/background.jpg);
This background image is just a solid block of color with 50% transparency created in photoshop and saved as a jpg.
I also have in this file a body tag with a background image of a group of babies:
body {
background-image: url(Images/babies.jpg);
background-repeat: repeat;
}
Now the problem. When I look at the web page on the net (it's live), each page shows correctly the background image, the babies, and the paragraph with the semi-transparent background color correctly (the babies show through partially the background color). However, on the ipad and iphone, the background color for the paragraph doesn't exist, all I have is the text against the babies. Even if I make the transparency 100%, no change. This occurs on every browser I have tried on the ipad and iphone. What is it about these devices that makes them disregard this background? Thanks.
The site is off line at the moment so I can't do that but I have discovered what I think is the problem. The background image file, though a jpg was saved in psd format. When I resaved it as plain old jpg, it does show on all devices but only if opacity is 100%, since jpg images cannot be saved with any other kind of opacity. When I use the image as a psd or other format that allows reduced opacity it shows up properly on the computer, but again on the ipad or iphone doesn't show at all. So I guss my question is, is there any way to use an image with reduced opacity that will show up that way on the ipad or iphone in their Safari or any other browser. I essentially want a background image that will alllow the body background image to partially show through that will work when the web page is viewed on the ipad and iphone. Thanks.
Bear in mind that while a JPG can have 32 x 10^6 colors, a PNG can only have 256. If your image has texture or is a photo-quality image, then you may experience some degradation of quality. In addition, the PNG and the JPG compression algorithms are vastly different, and you may also find the resulting PNG to be significantly larger than the corresponding JPG.
North America
Europe, Middle East and Africa
Asia Pacific