Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDavid Buckingham
855 Pointsindex.html page. im on once upon atime and im trying to get the next code in which is h1 {text-align:right;color:red}
cant seem to get this code to work on my last page
is it <h1> {text-align:right;color:red} or
h1 {text -align:rightcolor:red}
as you can tell im new to this
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Once Upon a Time</title>
<style>
h1 {text-align:left; color:green}
</style>
</head>
<body></body>
<body><h1>once upon a time</h1></body>
</html>
2 Answers
Rabin Gharti Magar
Front End Web Development Techdegree Graduate 20,928 PointsHey David Buckingham,
You should always end with a semi-colon
after declaring property
.
<style>
h1 {
text-align:right;
color:red;
}
</style>
Check out this link for more information about CSS Vocabulary
: http://apps.workflower.fi/vocabs/css/en#property
Hope this helps!
David Buckingham
855 Pointsthankyou so much