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 trialScott Gillespie
Courses Plus Student 701 PointsHow do I adjust a specific line of text on the screen?
On a webpage im creating, the copyright logo sits in the middle left hand side of the screen. Im trying to adjust it to move to the bottom center of the screen. How do I do this?
J V
4,471 Pointsalternatively.. you can go to the HTML tab and use the following code:
/* for the copywrite line text ONLY */
<p align=center>© 2016 Your Name.</p>
Scott Gillespie
Courses Plus Student 701 PointsThis is my css code. For some reason the p element at the bottom of the code is not sitting at the bottom left corner of the page, the very bottom of the page. I'm not trying to align it right, center, or left, im trying to put it in a specific area on the webpage. What commands could help me do this?
h1{
text-align: center;
color: red;
background: black;
margin: 0 auto;
}
h2{
text-align: center;
color: blue;
background: black;
margin: 0 auto;
}
nav {
position: absolute;
top: -9px;
margin: 0 auto;
text-decoration: none;
}
a {
color: green;
text-decoration: none;
}
p {
color:blue;
}
Scott Gillespie
Courses Plus Student 701 PointsWait nevermind! I figured it out! Thanks for the help guys.
Steven Parker
231,198 Points
The align attribute on a p
tag is obsolete and not supported in HTML5.
(attention: Jordan)
1 Answer
Farid Wilhelm Zimmermann
16,753 PointsYou could put a <div> around it and center it with margin:auto !
J V
4,471 PointsJ V
4,471 PointsBest to see your code in order to fully understand what you want. I'm doing the same lesson as you at the moment.
I'm assuming you can just use the following: