AH-SID
I made a CSS file for my wapsite, but I got some problem. When I visited my wapsite using browser for phone (opera mini and also nokia browser), the background image often not show (blank like not given a style).
Example:
.post { background: url(image.png); }
also I tried
.post { background-image: url(image.png); }
and also I tried to give command !important
.post { background: url(image.png) !important; }
But still not give any effect. What is wrong?
TechnoSparks
AH-SID You might have syntax error in your CSS code!
Remember to nest the url in quotes.
background: url(
"image.png
");
However if you indeed have nested such URL, this might be the client fault too. Try to add
repeat in your code.
.post {
background: url("image.png") repeat;
}
Copy code
if that still doesn't work, you can always divert to the long form,
.post
{
background-repeat: repeat;
background-image: url("image");
}
Copy code
if that doesn't work too, just use the background-color as a fallback and try to relax. Think it this way; your CSS may not be showing in Opera Mini, however, newer phones might show it without problems
Posting a link would help