- This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
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);
}
Probably a path issue more than likely.
try
<link href=”../css/styles.css” type=”text/css”
rel=”stylesheet” />
Still not working.
Much easier to solve if you provide a link…
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.