html - Background image doesn't show up -


i have tried following tutorials on w3schools, , i've dug developer tools on website i'm tasked cloning, , have gone previous project when had background image.

i know user error, stuck.

my html looks this:

<section class="introduction">  <img src="background-image"> 

and css looks this:

.introduction {   background-image: url('../images/karma-background.jpg');  }   

you don't require image object

<img src="..."> 

css , background images work so.

<section class="introduction"></section>  .introduction { background-image:url('../images/karma-background.jpg');  } 

so problem haven't ended section tag have in example. may have add additional css sizing


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -

java - Digest auth with Spring Security using javaconfig -