Make a Website - 7. font-size


#1

Hello, I am currently lost on Instruction 4 ::
Now let's resize anchor elements that are children of elements with the "hero" class using em values.
In main.css locate the .hero a selector. Change the font-size property to 1.25em;.

Here is my main.css:

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

h1 {font-family: Palatino, 'Palatino Linotype', serif;
	font-size: 32px; color: rgb(46,105,163);
}

h2 {
  font-family: 'Trebuchet MS', Helvetica, sans-serif;
font-size: 56px;
}
.hero {
	padding: 250px 0;
	margin: 30px;
}


p {font-size: 2rem;

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

My error says: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.

I've read that changing browsers would fix the problem. I'm currently using Chrome, and tried Internet Explorer and Firefox but all had the same error.
I'm quite lost, so any help will much appreciated.
Thank you!


#2

Hi,

Seeing this topic a few days later wondering if you still experiencing this problem or its sorted ?