Text alignment problems?


#1



I don't know what I'm doing wrong, The instruction are this:
1. In style.css, set the text-align property of the main heading so that it appears in the center.
2. On second thought, the heading looks better on the left. Reset the heading so that it is aligned to the left.
I'm trying to fulfill the instructions in the right order, please check my code! Thanks in advance!


h1 {
  text-align: center;
  text-transform: uppercase;
  color: #FFF;
  font-family: Georgia, garamond, serif;
  font-size: 32px;
  padding-top: 100px;
  text-align: left;
  width: 60%;
}

Not really sure what's wrong with the text-align thing but I'm open to suggestions.


#2

Yea the the same thing happened to me Here's the code

text-transform:uppercase;
text-align: center;
color: #FFF;
font-family: Playfair,serif;
font-size: 32px;
padding-top: 100px;
text-align: left;
width: 60%;


#3

Same for me. This is what I submitted for my 15.1 exercise and I got an error:

h1 {
text-align: center;
text-transform: uppercase;
font-family: "Playfair Display", serif;
color: #FFF;
font-size: 32px;
padding-top: 100px;
text-align: left;
width: 60%;
}

Error = "Did you align the heading to appear in the center?"


#4

I kept trying and it gave me the code. Apparently, it wants you to enter it in a specific order:

h1 {
color: #FFF;
font-family: "Playfair Display", serif;
font-size: 32px;
padding-top: 100px;
text-align: center;
text-transform: uppercase;
width: 60%;
}


#5

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