Main.css file is not being applied


Did you add a color property of #ffffff the .hero selector in main.css?

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

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

h2 {
font-size: 56px; 

.hero { 
  color: #ffffff;
         padding: 250px 0;
         margin: 30px;
font-family: 'Trebuchet MS', Helvetica, sans-serif;
  background-image: url("");
  background-size: cover;


p {
font-size: 2rem;

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


In preview is the color being applied?

If it is NOT then see if main.css is linked properly or could be a mistake in HTML so paste in the HTML code...

If it's being applied then refresh the page or try another browser


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