-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
193 lines (177 loc) · 14.3 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>CSS Hub</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<!--LEFT-->
<nav id="navbar" class="left">
<hr><hr>
<header><strong>CSS Hub</strong></header>
<hr><hr>
<a class="nav-link" href="#CSS:_Cascading_Style_Sheets">CSS: Cascading Style Sheets</a><br><hr>
<a class="nav-link" href="#Key_resources">Key resources</a><br><hr>
<a class="nav-link" href="#Tutorials">Tutorials</a><br><hr>
<a class="nav-link" href="#CSS_first_steps">CSS first steps</a><br><hr>
<a class="nav-link" href="#CSS_building_blocks">CSS building blocks</a><br><hr>
<a class="nav-link" href="#Styling_text">Styling text</a><br><hr>
<a class="nav-link" href="#CSS_layout">CSS layout</a><br><hr>
<a class="nav-link" href="#Use_CSS_to_solve_common_problems">Use CSS to solve common problems</a><br><hr>
<a class="nav-link" href="#Reference">Reference</a><br><hr>
<a class="nav-link" href="#Cookbook">Cookbook</a><br><hr>
<a class="nav-link" href="#Tools_for_CSS_development">Tools for CSS development</a><br><hr>
<a class="nav-link" href="#Meta_bugs">Meta Bugs</a><br><hr>
<a class="nav-link" href="#See_also">See also</a><br><hr>
</nav>
<!--RIGHT-->
<main id="main-doc" class="right">
<section class="main-section" id="CSS:_Cascading_Style_Sheets">
<header>CSS: Cascading Style Sheets</header>
<p>
<strong>Cascading Style Sheets (CSS)</strong> is a <a href="https://developer.mozilla.org/en-US/docs/Web/API/StyleSheet">stylesheet</a> language used to describe the presentation of a document written in <a href="https://developer.mozilla.org/en-US/docs/Web/HTML">HTML</a> or <a href="https://developer.mozilla.org/en-US/docs/Web/XML/XML_introduction">XML</a> (including XML dialects such as SVG, MathML or XHTML). CSS describes how elements should be rendered on screen, on paper, in speech, or on other media.
</p>
<p>
CSS is among the core languages of the open web and is standardized across Web browsers according to <a href="https://www.w3.org/Style/CSS/#specs">W3C specifications</a>. Previously, development of various parts of CSS specification was done synchronously, which allowed versioning of the latest recommendations. You might have heard about CSS1, CSS2.1, CSS3. However, CSS4 has never become an official version.
</p>
<p>
From CSS3, the scope of the specification increased significantly and the progress on different CSS modules started to differ so much, that it became more effective to <a href="https://www.w3.org/Style/CSS/current-work">develop and release recommendations separately per module</a>. Instead of versioning the CSS specification, W3C now periodically takes a snapshot of the <a href="https://www.w3.org/TR/css/">latest stable state of the CSS specification</a>.
</p>
</section>
<section class="main-section" id="Key_resources">
<header>Key resources</header>
<h4>CSS Introduction</h4>
<p>If you're new to web development, be sure to read our <a href="https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/CSS_basics">CSS basics</a> article to learn what CSS is and how to use it.</p>
<h4>CSS Tutorials</h4>
<p>Our CSS <a href="https://developer.mozilla.org/en-US/docs/Learn/CSS">learning area</a> contains a wealth of tutorials to take you from beginner level to proficiency, covering all the fundamentals.</p>
<h4>CSS Reference</h4>
<p>Our <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/Reference">exhaustive CSS reference</a> for seasoned Web developers describes every property and concept of CSS.</p>
</section>
<div class="add">
<h3>Looking to become a front-end web developer?</h3>
<p>We have put together a course that includes all the essential information you need to work towards your goal.</p>
<br><br><strong><a href="https://developer.mozilla.org/en-US/docs/Learn/Front-end_web_developer">Get started</a></strong>
</div>
<section class="main-section" id="Tutorials">
<header>Tutorials</header>
<p>Our <a href="https://developer.mozilla.org/en-US/docs/Learn/CSS">CSS Learning Area</a> features multiple modules that teach CSS from the ground up — no previous knowledge required.</p>
<section class="main-section sub" id="CSS_first_steps">
<header><a href="https://developer.mozilla.org/en-US/docs/Learn/CSS/First_steps"><h4>CSS first steps</h4></a></header>
<p>CSS (Cascading Style Sheets) is used to style and layout web pages — for example, to alter the font, color, size, and spacing of your content, split it into multiple columns, or add animations and other decorative features. This module provides a gentle beginning to your path towards CSS mastery with the basics of how it works, what the syntax looks like, and how you can start using it to add styling to HTML.</p>
</section>
<section class="main-section sub" id="CSS_building_blocks">
<header><a href="https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks"><h4>CSS building blocks</h4></a></header>
<p>This module carries on where <a href="#">CSS first steps</a> left off — now you've gained familiarity with the language and its syntax, and got some basic experience with using it, it's time to dive a bit deeper. This module looks at the cascade and inheritance, all the selector types we have available, units, sizing, styling backgrounds and borders, debugging, and lots more.</p>
<p>The aim here is to provide you with a toolkit for writing competent CSS and help you understand all the essential theory, before moving on to more specific disciplines like <a href="#">text styling</a> and <a href="#">CSS layout</a>.</p>
</section>
<section class="main-section sub" id="Styling_text">
<header><a href="https://developer.mozilla.org/en-US/docs/Learn/CSS/Styling_text"><h4>Styling text</h4></a></header>
<p>With the basics of the CSS language covered, the next CSS topic for you to concentrate on is styling text — one of the most common things you'll do with CSS. Here we look at text styling fundamentals, including setting font, boldness, italics, line and letter spacing, drop shadows, and other text features. We round off the module by looking at applying custom fonts to your page, and styling lists and links.</p>
</section>
<section class="main-section sub" id="CSS_layout">
<header><a href="https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout"><h4>CSS layout</h4></a></header>
<p>At this point we've already looked at CSS fundamentals, how to style text, and how to style and manipulate the boxes that your content sits inside. Now it's time to look at how to place your boxes in the right place in relation to the viewport, and to each other. We have covered the necessary prerequisites so we can now dive deep into CSS layout, looking at different display settings, modern layout tools like flexbox, CSS grid, and positioning, and some of the legacy techniques you might still want to know about.</p>
<p>
The CSS <code>height</code> and <code>width</code> properties are used to set the height and width of an element.<br>
The CSS <code>max-width</code> property is used to set the maximum width of an element.
</p>
<p>
The <code>height</code> and <code>width</code> properties may have the following values:
<ul>
<li><code>auto</code> - This is default. The browser calculates the height and width</li>
<li><code>length</code> - Defines the height/width in px, cm etc.</li>
<li><code>%</code> - Defines the height/width in percent of the containing block</li>
<li><code>initial</code> - Sets the height/width to its default value</li>
<li><code>inherit</code> - The height/width will be inherited from its parent value</li>
</ul>
</p>
</section>
<section class="main-section sub" id="Use_CSS_to_solve_common_problems">
<header><a href="https://developer.mozilla.org/en-US/docs/Learn/CSS/Howto"><h4>Use CSS to solve common problems</h4></a></header>
<p>This module provides links to sections of content explaining how to use CSS to solve common problems when creating a web page.</p>
</section>
</section>
<section class="main-section" id="Reference">
<header>Reference</header>
<ul>
<li><strong>All the documentation in this page is taken from <a href="https://developer.mozilla.org/en-US/docs/Web/CSS">MDN</a></strong></li>
<li><a href="#">CSS reference</a>: This exhaustive reference for seasoned Web developers describes every property and concept of CSS.</li>
<li>CSS key concepts:
<ul>
<li>The syntax and forms of the language</a></li>
<li><a href="#">Specificity</a>, <a href="#">inheritance</a>, and <a href="#">the Cascade</a></li>
<li><a href="#">CSS units and values</a> and <a href="#">functional notations</a></li>
<li><a href="#">Box model</a> and <a href="#">margin collapse</a></li>
<li>The <a href="#">containing block</a></li>
<li><a href="#">Stacking</a> and <a href="#">block-formatting</a> contexts</li>
<li><a href="#">Initial</a>, <a href="#">computed</a>, <a href="#">used</a>, and <a href="#">actual</a> values</li>
<li><a href="#">CSS shorthand properties</a></li>
<li><a href="#">CSS Flexible Box Layout</a></li>
<li><a href="#">CSS Grid Layout</a></li>
<li><a href="#">CSS selectors</a></li>
<li><a href="#">Media queries</a></li>
<li><a href="#">Animation</a></li>
</ul>
</li>
</ul>
</section>
<section class="main-section" id="Cookbook">
<header>Cookbook</header>
<p>The <a href="#">CSS layout cookbook</a> aims to bring together recipes for common layout patterns, things you might need to implement in your sites. In addition to providing code you can use as a starting point in your projects, these recipes highlight the different ways layout specifications can be used, and the choices you can make as a developer.</p>
</section>
<section class="main-section" id="Tools_for_CSS_development">
<header>Tools for CSS development</header>
<ul>
<li>You can use the <a href="#">W3C CSS Validation Service</a> to check if your CSS is valid. This is an invaluable debugging tool.</li>
<li><a href="#">Firefox Developer Tools</a> lets you view and edit a page's live CSS via the Inspector and Style Editor tools.</li>
<li>The <a href="#">Web Developer extension</a> for Firefox lets you track and edit live CSS on watched sites.</li>
<li>The Web community has created various <a href="#">other miscellaneous CSS tools</a> for you to use.</li>
</ul>
</section>
<section class="main-section" id="Meta_bugs">
<header>Meta bugs</header>
<ul>
<li>Firefox: <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1323667">bug 1323667</a></li>
</ul>
</section>
<section class="main-section" id="See_also">
<header>See also</header>
<ul>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/Demos_of_open_web_technologies#css">CSS demos</a>: Get a creative boost by exploring examples of the latest CSS technologies in action.</li>
<li>Web languages to which CSS is often applied: <a href="#">HTML</a>, <a href="#">SVG</a>, <a href="#">MathML</a>, <a href="#">XHTML</a>, and <a href="#">XML</a></li>
<li><a href="https://stackoverflow.com/questions/tagged/css">Stack Overflow questions about CSS</a></li>
</ul>
</section>
</main>
<div class="problem">
<h3>Found a problem with this page?</h3>
<ul>
<li><a href="#">Source on <strong>Github</strong></a></li>
<li><a href="#">Report a problem with this content on <strong>Github</strong></a></li>
<li>Want to fix the problem yourself? See <a href="#">our Contribution guide.</a></li>
</ul>
<h4><strong>Last modified:</strong>May 26,2021, by <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/contributors.txt">by MDN contributors</a></h4>
<br>
<h2><strong>Change your language</strong></h2><br>
<select>
<option value="en">English (US)</option>
<option value="de">German - Deutsch</option>
<option value="it">Italian - italiano</option>
<option value="pl">Polish - polski</option>
<option value="pt">Portuguese - português</option>
<option value="ja">Japanese - 日本語</option>
<option value="ar">Arabic - العربية</option>
<option value="bn">Bengali - বাংলা</option>
<option value="bs">Bosnian - bosanski</option>
<option value="hi">Hindi - हिन्दी</option>
<option value="ko">Korean - 한국어</option>
<option value="es">Spanish - español</option>
<option value="uz">Uzbek - o‘zbek</option>
</select>
<button type="button">Change language</button>
</div>
</body>
</html>