Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.