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

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
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
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: