0

I have a small website, that I wanted to "decorate" myself, but I don't get why a separate CSS file applies on the basic page and not on the included pages.

<html>
    <head>
        <link rel="stylesheet" type="text/css" href="scripts/styles.css"/>
    </head>
</html>

That's how I link the stylesheet.

<?php
    $page = $_GET['page'];

    if (!empty($page))      // if $page has a value, include it 
    {
        $page .='.php';
        include($page);
    }
    else        // otherwise, include the default page
    {
        include('news.php');        // news.php is a default page
    }
?>

And that's the include part.

#vk_profile
{
    color:#FAB41D;
    font-family:Courier New;
    font-size:12px;
    font-weight:bold;
    font-style:normal;
    text-decoration:none;
}

#red_text
{
    color:#FF0600;
    font-family:Courier New;
    font-size:12px;
    font-weight:bold;
    font-style:normal;
    text-decoration: underline;
}

Example of CSS code.

Does someone have the answer or at least a guideline?

P.S. Never used CSS before, so I'm a total noob.

4

0 回答 0