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.

PHP Build a Basic PHP Website (2018) Building a Media Library in PHP Including the Header

Mahfuzur Rahman
Mahfuzur Rahman
3,204 Points

div class="section page" please explain how it is displaying the text typed inside on the center of the page.

1 Answer

Jennifer Nordell
Jennifer Nordell
Treehouse Teacher

Hi there! In the style.css file starting at line 543 we find this rule:

.section.page h1 {
    font-size: 24px;
    text-align: center;
    line-height: 1.6;
    font-weight: normal;

This means that all h1 elements within an element that has the CSS class "section" and "page" will have a font size of 24 pixels, text alignment is centered, the line height is 1.6 (unitless), and a font weight of normal (it's not bold or lightened in any way).

I notice that you don't have any points yet in HTML or CSS. I might suggest either taking or reviewing some HTML and CSS courses so that you're clear on what is being added and manipulated with the PHP you're learning.

Hope this helps! :sparkles: