Cannot read property '1' of null


4. Styling With CSS - Colors

Cannot read property '1' of null

body {
  padding: 0;
  margin: 0;
  background: #f7f7f7;
  /* Old browsers */
  background: -moz-linear-gradient(45deg, #f7f7f7 0%, #EAE0D5 100%);
  /* FF3.6-15 */
  background: -webkit-linear-gradient(45deg, #f7f7f7 0%, #EAE0D5 100%);
  /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(45deg, #f7f7f7 0%, #EAE0D5 100%);

/** Header styles **/

.header {
  background-image: url("");
  height: 400px;
  background-position: center center;

h1 {
  font-family: 'Covered By Your Grace', sans-serif;
  font-size: 100px;
  line-height: 76px;
  margin: 0;
  position: relative;
  text-align: center;
  top: 20%;
  color: rgb(54, 74, 101);
  background-color: rgb(23, 108, 224);

/** List style **/

h2 {
  color: #E4BB97;
  font-family: 'Raleway', sans-serif;
  font-size: 28px;
  font-weight: 500;
  text-align: left;
  text-transform: uppercase;

ul {
  margin: 0 auto;
  padding: 0;
  width: 50%;

li {
  border-bottom: 1px solid #E4BB97;
  list-style: none;
  margin: 100px 0px;
  padding-bottom: 60px;

p {
  color: #444444;
  line-height: 32px;
  font-family: 'Raleway', sans-serif;
  font-size: 20px;
  font-weight: 100;

a {
  color: #214E34;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 2px;


That's the full error ?

Try refreshing the page


i have ssame problem with him. stuck here.
do you have sugestion with this.. or the code


What I can suggest is:

  • Refresh the page
  • Logout and login again
  • Reset the lesson and try again


I do have the same error, Cannot read property '1' of null.tried all these , Refreshing the page
Logout and login again
Reset the lesson and try again. anyone could help me? thanks


It wont Reset the lesson.


I have the same problem. I just applied the Background-color: Cyan on the h1 instead of applying it on the header, and it works


If you haven't then paste in your code and error..

If you have and was told no error in code, then use the report a bug button on lesson..


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