/* INSERT YOUR CSS HERE */
@font-face{
font-family: "open gotham" "open sans-serif";
src: url("site/fonts/gotham/GOTHMLIG.TTF")("sans-serif") format("truetype") back-up format("sans-serif")
<h1>{
font-family: "open gotham" "open sans-serif";
src: local("sans-serif") url("styles/fonts/gotham/GOTHMMED.TTF) format("truetype") back-up format("sans-serif")
<h2> {
font-family: "open gotham" "open sans-serif";
src: url("/fonts/gotham/gothmbok.ttf")("sans-serif") format("truetype") back-ip format("sans-serif")
/* DO NOT MODIFY ANYTHING BELOW THIS LINE */
img {
border-radius: 5px;
}
li {
list-style: none;
}
a {
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
footer {
font-size: 12px;
}
Tests That Failed:
! Expecting no CSS errors to be present
assignment/styles/site.css
- [Line 35] CSS: Parse Error.
! Expect “Gotham” font-family to be applied
- Make sure the "Gotham" is linked properly
- Check if "sans-serif" is added as backup in case "Gotham" does not work
! Expect “Gotham Med” and “sans-serif” font-families to be applied
- Make sure the "Gotham Med" is linked properly
- Check if "sans-serif" is added as backup in case "Gotham Med" does not work
! Expect “Gotham Book” font-family to be applied
- Make sure the "Gotham Book" is linked properly
- Check if "sans-serif" is added as backup in case "Gotham Book" does not work
ive been stuck for the last two days and i really don’t wanna fail would someone be wiling to point out what im missing?
Roma
December 18, 2021, 10:03pm
2
What test is this? Is it from a lesson? Which one?
In the future
If you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.
Thank you.
Roma
December 18, 2021, 10:04pm
3
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>
) to add backticks around text.
See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).
yes its from a lesson from my code your design in css under the creating a style sheet section from lms.ecornell
apprecite it
Roma
December 18, 2021, 10:07pm
5
I don’t understand what you’re saying here
its an online college course I’m taking
its’s a lesson where I have to build a studio 54x website using the specific typography listed here
Font Family
Where to Apply
Path to Source File
Gotham
Default font for whole page
fonts/gotham/GOTHMLIG.TTF
Gotham Med
Heading 1 ( <h1>
) elements,
navigation links
fonts/gotham/GOTHMMED.TTF
Gotham Book
Heading 2 ( <h2>
) elements
fonts/gotham/GOTHMBOK.TTF
sans-serif
Should render if the custom font fails to render on the website
system
Closed
June 19, 2022, 10:15am
7
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.