-
Notifications
You must be signed in to change notification settings - Fork 275
revision of exercises #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
8d7fc2b
revision of exercises
ElviraQDP 4f55d30
revision of exercises
ElviraQDP 15c0011
Merge branch 'checks' of https://github.com/ElviraQDP/css-tutorial-ex…
ElviraQDP 65b2cc4
test and exerises checked
ElviraQDP 2199cb9
ALe's comments added
ElviraQDP File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
revision of exercises
- Loading branch information
commit 4f55d300c459eb9aec4525de8f3c1804ec1bb822
There are no files selected for viewing
This file contains hidden or 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,31 @@ | ||
| --- | ||
| intro: "https://www.youtube.com/watch?v=BDKdUPDez-U" | ||
| --- | ||
|
|
||
| # ¡¡Bienvenido a los ejercicios de CSS!! | ||
|
|
||
| Mi nombre es Alejandro Sanchez [@alesanchezr](https://twitter.com/alesanchezr) ¡Estoy muy contento de que estén aquí! 🎉 😂 | ||
| Aprender a programar es dificil ¡Necesitas coaching! Envíame un DM vía Twitter si tienes alguna pregunta. | ||
|
|
||
| Durante este curso aprenderás los siguientes conceptos: | ||
|
|
||
| 1. Cómo aplicar CSS a tu sitio web de tres formas diferentes: | ||
| Inline, agrupando todo dentro de la etiqueta `<style>` o usando una hoja de estilos externa `<link>`, | ||
| 2. Seleccionar elementos HTML para tu sitio web para aplicarle estilos, | ||
| 3. Aplicarle reglas CSS (estilos) a esos elementos, | ||
| 4. A usar las reglas CSS más populares, | ||
| 5. Aprender los trucos más populares de CSS. | ||
|
|
||
| Como te habrás dado cuenta, HTML sólo te permite crear sitios web básicos. Nadie quiere ver un sitio web en blanco con un texto horrible. ¡Así que es hora de aprender CSS! Aprende CSS para que tu sitio web sea hermoso ¡Hagámos que brille! | ||
|
|
||
| ## Colaboradores | ||
|
|
||
| Muchas gracias a estas personas maravillosas ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)): | ||
|
|
||
| 1. [Alejandro Sanchez (alesanchezr)](https://github.com/alesanchezr), contribución: (programador) :computer: (idea) 🤔, (build-tests) :warning:, (pull-request-review) :eyes: (build-tutorial) :white_check_mark: (documentation) :book: | ||
| 1. [Paolo Lucano (plucodev)](https://github.com/plucodev), contribución: (programador), (build-tests) :warning: | ||
|
|
||
| Este proyecto sigue las especificaciones | ||
| [all-contributors](https://github.com/kentcdodds/all-contributors) | ||
| ¡Todas las contribuciones son bienvenidas! | ||
|
|
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,23 @@ | ||
| --- | ||
| tutorial: "https://www.youtube.com/watch?v=C5sOchuD2d4" | ||
| --- | ||
|
|
||
| # `01.1` Etiqueta Style | ||
|
|
||
| Si quieres añadir estilos a tu sitio web escribiendo CSS siempre debes hacerlo dentro de una etiqueta `<style>`. | ||
| Puedes tener cuantas etiquetas `<style>`quieras pero se recomienda solo tener una al principio del código de tu sitio web. | ||
|
|
||
| ```HTML | ||
| <style> | ||
| /* los estilos CSS del sitio web van aquí */ | ||
| </style> | ||
| ``` | ||
|
|
||
| ## 📝 Instruccciones | ||
| Añade una etiqueta `<style>` en tu sitio web y usando CSS selecciona todas las etiquetas `<p>` para que su texto sea de color azul (blue) | ||
|
|
||
| ## 💻 Vista previa | ||
|
|
||
| Debería verse así: | ||
|
|
||
|  | ||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,20 @@ | ||
| --- | ||
| tutorial: "https://www.youtube.com/watch?v=T0anCc5fvSg" | ||
ElviraQDP marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| --- | ||
|
|
||
| # `02` Hoja de estilos separada | ||
ElviraQDP marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| Si usas la etiqueta html `<link>`, puedes tener tus estilos en un archivo separado que normalmente se llama `styles.css`. | ||
|
|
||
| Esa es una práctica aún mejor porque te permite tener un sitio web a quien no le importe el diseño, puedes cambiar el CSS después y hacer que tu sitio web se vea 100% diferente, pero teniendo exactamente el mismo HTML. | ||
|
|
||
| ## 📝 Instrucciones: | ||
|
|
||
| LLena el `styles.css` con el contenido necesario para que el body del sitio web azul (blue). | ||
|
|
||
|
|
||
| ## 💡 Pista: | ||
|
|
||
| Busca en Google cómo cambiar el color de fondo (background) de un body de un sitio web. | ||
|
|
||
|
|
||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,23 @@ | ||
| # `04` El selector de clase | ||
|
|
||
| Hay muchas formas de seleccionar los elementos HTML para aplicarles estilos, hasta ahora solo hemos usado la etiqueta selector, hablemos sobre el selector de `.class`: | ||
|
|
||
| #### 1) Selector de `.class` | ||
|
|
||
| Es el selector de CSS más popular, probablemente lo usarás cada 5 minutos. | ||
|
|
||
| Usa la propiedad de clase del elemento HTML para seleccionar. La reglas de estilo se aplicarán a todos los elementos con la misma clase. | ||
|
|
||
| ```css | ||
| .small{ | ||
| font-size: 9px; | ||
| } | ||
| ``` | ||
| Nota: cualquier etiqueta html con `class="small"` tendrá un font-size de 9px. | ||
|
|
||
| # 📝 Instrucciones: | ||
|
|
||
| En este momento hay una clase seleccionada en el CSS llamada | ||
| `.b-blue`. | ||
|
|
||
| Por favor aplica la clase a ambas etiquetas HTML `<p>`. |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 @@ | ||
| # `04` Class Selector | ||
|
|
||
| You can also select an element by `#id` and apply stiles to it. | ||
|
|
||
| #### The `#id` selector | ||
|
|
||
| ```css | ||
| #small{ | ||
| font-size: 9px; | ||
| } | ||
| ``` | ||
| Use the id property of the HTML element to select it. IDs should be unique, only one element must have the same ID. | ||
| Note: The html tag with the `id="my_number_one"` will have a font-size of 9px. | ||
|
|
||
| # 📝 Instructions: | ||
|
|
||
| Add the id `button1` on to the `<span>` tag and compile to check the result on the console. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.