forked from mdn/css-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8b1ec34
commit 647bfb4
Showing
4 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
p { | ||
background-color: white; | ||
color: black; | ||
font-size: 14px; | ||
font-style: normal; | ||
font-weight: normal; | ||
font-family: serif; | ||
} | ||
|
||
h1 { | ||
text-shadow: 2px 2px 2px #747474; | ||
text-align: center; | ||
font-weight: bold; | ||
font-size: 22px; | ||
font-family: sans-serif; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
p { | ||
border-style: groove; | ||
border-width: 2px; | ||
background-color: #8d0019; | ||
color: #fcff00; | ||
font-size: 14px; | ||
font-family: Georgia, "Times New Roman", Times, serif; | ||
} | ||
|
||
h1 { | ||
background-color: #000c6e; | ||
color: #ff8100; | ||
font-weight: bold; | ||
font-size: 20px; | ||
font-family: "Zapf Chancery", "Comic Sans MS", cursive; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<html> | ||
<head> | ||
<title>Alternate Style Sheets example</title> | ||
<link href="default.css" rel="stylesheet" type="text/css" title="Default Style"> | ||
<link href="simple.css" rel="alternate stylesheet" type="text/css" title="Simple"> | ||
<link href="fancy.css" rel="alternate stylesheet" type="text/css" title="Fancy"> | ||
</head> | ||
<body> | ||
<h1>About alternative style sheets</h1> | ||
<p>Firefox offers support for <em>alternative style sheets</em>. Pages that provide alternative style sheets allow the user to select the style in which the page is displayed using the View>Page Style submenu. This provides a way for users to see multiple versions of a page, based on their needs or preferences.</p> | ||
|
||
<p>A web page can use the <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link"><link></a> element to add alternative style sheets to a document.</p> | ||
|
||
<h1>Try it out!</h1> | ||
<p>Go to the View>Page Style submenu and select a different style to watch this page's look change!</p> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
p { | ||
font-size: 12px; | ||
font-family: sans-serif; | ||
} | ||
|
||
h1 { | ||
font-weight: bold; | ||
font-size: 16px; | ||
font-family: sans-serif; | ||
} |