Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS CSS–External

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #246416
    TV
    Participant

    I’m practising External CSS. I understand Internal, but am having problems with a simple External exercise. I’m trying to change background color and font in H1. Is it my spacing again?

    <!DOCTYPE html>
    <html>
    <head>
    <title>ExternalCSS</title>
    <link href=”css/styles.css” type=”text/css”
    rel=”stylesheet” />
    </head>
    <body>
    <h1>Potatoes</h1>

    There are dozens of different potato
    varieties. They are usually described as
    early, second early and main crop.

    </body>
    </html>
    body {
    font-family: comic-sans;
    background-color: rgb(218, 165, 32);
    }
    h1 {
    color: rgb(248, 248, 255);
    }

    #246417
    Paulie_D
    Member

    Probably a path issue more than likely.

    try

    <link href=”../css/styles.css” type=”text/css”
    rel=”stylesheet” />

    #246418
    TV
    Participant

    Still not working.

    #246419
    Shikkediel
    Participant

    Much easier to solve if you provide a link…

    #246420
    I.m.learning
    Participant

    If you’re having too many issues, or cannot find the correct relative path, just use an absolute path.

    My link to my style sheet is:

    <link id=”pagestyle” rel=”stylesheet” type=”text/css” href=”http://www. [my_website.domain] /styles/index.css”>

    Without viewing your issue (giving link or pen), it’s a guessing game.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.