8/10. trouble with background image


#1

Hi I am having the same issue. Here is a copy of the main.css:

body {
	height: 100%;
	margin: 0;
	text-align: center;
	width: 100%;
}

h1 {
  font-family: Palatino, 'Palatino Linotype', serif;
	font-size: 32px;
  color: rgb(218,190,206);
}

h2 {
	font-size: 56px;
}


.hero {
  font-family: 'Trebuchet MS',
Helvetica, sans-serif;
	padding: 250px 0;
	margin: 30px;
  background-image:
    url("https://s3.amazonaws.com/codecademy-content/projects/make-a-website/lesson-2/bg.jpg")
  background-size: cover;
}


p {
font-size: 2rem;
}

.hero a {
	color: #00FFAA;
	font-size: 1.25em;
	text-decoration: none;
}

Stuck on css 8/10. trouble with background image
#2
  1. Missing semi colon at the end
  2. Remove the line break from between background-image: and url

#3

This topic was automatically closed after 7 days. New replies are no longer allowed.