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 Staff

Hi there! In the style.css file starting at line 543 we find this rule: 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: