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 trial

CSS

Cos N
Cos N
844 Points

Css (create a basic website)

copyright {

border-top: 8px solid #2A0400;
padding: 10px 0px;
margin: 15px 0px;
text-align: center;

} copyright is not in the center is on the right side. How can i fix that. thank you.

5 Answers

You have the copyright element inside the grid_5 element. So it is being centered in respect to that parent element. You'll need to take the copyright element out of the grid_5 so that it becomes a sibling and not a child as it is now..

Is copyright a class? If so then it needs the dot (.) such as:

.copyright {

}
Cos N
Cos N
844 Points

No it's not a class is an id and i used #copyright. but is not working :(

Yeah then the following should work:

#copyright {

}

Is the element a block or inline? If it's an inline element it wont work so you can give it the property:

display: block;
Cos N
Cos N
844 Points

You got it, I should pay more attention. Thank you for your help. I appreciate it.