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 trial
Luqman Shah
3,016 PointsBackground Image Won't Appear
<div class="banner">
<span class="banner-span">Introducing The First Phone by Luqman</span>
<h1 class="banner-title">Start Your Journey Here</h1>
</div>
.banner {
background: #546e7a url('../img/LPhone 1.6png') no-repeat center;
}
Now the color I applied does appear, but the image just won't show.
1 Answer
Emre Karakuz
9,162 Pointsdude there is no image type that is .6jpg . I think it should be jpg . Check the file name if its correct or not
Luqman Shah
3,016 PointsLuqman Shah
3,016 PointsNo my image is titled LPhone 1.6 and it is a png file. I just forgot to add the dot before png. So I changed it to
LPhone 1.6.pngand it worked.