Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialVicky Kumar
5,742 PointsBackground image not working?
Hi!
My background transparent is not showing. What could be the reason? I've tried the same in Mozilla Firefox and transition and transform is working fine in both browsers but I'm not able to get my background transparent image in both browsers. Here's my css code
background: url('img/transparent-treehouse2.png') no-repeat 0 0;
I've also shifted the image in same folder where the htm file exists but problem still persists. Help me out.
Thanks!
1 Answer
Liam Tarpey
6,247 PointsTry this:
background: url('img/transparent-treehouse2.png') no-repeat;
If that doesn't work, check that your image path is correct, you can use the 'inspect element' on pretty much any modern browser to narrow down the issue.
If that's correct, check that your div has a width and height set.