mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
css tweaks
This commit is contained in:
@@ -44,12 +44,3 @@ Here's a more detailed view from [Chris Eppstein](https://twitter.com/chriseppst
|
|||||||
<img src="https://raw.githubusercontent.com/Microsoft/frontend-bootcamp/master/assets/css-syntax.png"/>
|
<img src="https://raw.githubusercontent.com/Microsoft/frontend-bootcamp/master/assets/css-syntax.png"/>
|
||||||
|
|
||||||
Selectors can be a single tag, class, ID, or attribute. It can also be a [combination](https://developer.mozilla.org/en-US/docs/Learn/CSS/Introduction_to_CSS/Combinators_and_multiple_selectors) of those elements.
|
Selectors can be a single tag, class, ID, or attribute. It can also be a [combination](https://developer.mozilla.org/en-US/docs/Learn/CSS/Introduction_to_CSS/Combinators_and_multiple_selectors) of those elements.
|
||||||
|
|
||||||
Below is a series of selectors and property/value combinations that we'll apply to our CSS demo page.
|
|
||||||
|
|
||||||
```css
|
|
||||||
```
|
|
||||||
|
|
||||||
## Next Step
|
|
||||||
|
|
||||||
[JavaScript Demo](../js-demo)
|
|
||||||
|
|||||||
@@ -25,27 +25,29 @@
|
|||||||
/* Bonus */
|
/* Bonus */
|
||||||
</pre>
|
</pre>
|
||||||
<pre data-lang="html">
|
<pre data-lang="html">
|
||||||
|
<!-- Without changing the below markup apply the styles asked for in the markup. Do not apply styles that a tag doesn't ask for -->
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<h2>1. Text Color: Red</h2>
|
<h2>1. Text Color: Red</h2>
|
||||||
<div>2. Color Green (hint: Sibling Selector)</div>
|
<div>2. Color Green (hint: Sibling Selector)</div>
|
||||||
|
<main>
|
||||||
<ul class="myList">
|
<ul class="myList">
|
||||||
<li>
|
<li>
|
||||||
3. Border Green
|
3. Border Green
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<main>
|
<div class="myClass">4. Background Green</div>
|
||||||
<div class="myClass">4. Background Green</div>
|
<div class="myClass otherClass">
|
||||||
<div class="myClass otherClass">
|
5. Background Green & Color White
|
||||||
5. Background Green & Color White
|
(Hint Qualified Selector)
|
||||||
(Hint Qualified Selector)
|
|
||||||
</div>
|
</div>
|
||||||
<div id="myId" class="otherClass">6. Background Yellow</div>
|
<div id="myId" class="otherClass">6. Background Yellow</div>
|
||||||
</main>
|
</main>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
Don't Style Me
|
Don't Style Me
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div>Bonus: Border Pink</div>
|
<div>Bonus: Border Pink</div>
|
||||||
</section>
|
</section>
|
||||||
</pre>
|
</pre>
|
||||||
|
|||||||
Reference in New Issue
Block a user