Skip to content
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

Cesar Mejia, Late submission (CS8) #338

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Binary file modified .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"cSpell.enabled": false
}
70 changes: 70 additions & 0 deletions Answers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<!-- markdownlint-disable -->
# Sprint-Challenge - Week 01 - UI-Responsive

**1. If you saw this HTML:**

```html
<div class="box box1 box2 box3"></div>
```

**which class has the most specificity weight?**

ANSWER:

It depends on which class appears last in the css file.

Example 1:

```css
div .box1 {
color: red
}

div .box2 {
color: blue
}
```

Example 2:

```css
div .box1 {
color: blue
}
div .box2 {
color: red
}
```

In Example 1: div text would be blue. In the Example 2, div text would be red.

Codepen Example [link](https://codepen.io/cesarnml/pen/PBZOoE)

**2. Describe the difference between `display: block;` and `display: inline;`.**

- `display: block` ➡️ sets element to block-level. Block-level elements span all horizontal space available and begin on a new line.

- `display: inline` ➡️ inline elements horizontal span only the space required to contain the element and do not begin on new line


**3. While using flexbox, what axis are you using when you use the property: `align-items: center`?**

The `align-items` property selects the cross-axis. The cross-axis will be the y-axis if `flex-direction` is set to row or `row-reverse`. The cross-axis will be the x-axis if `flex-direction` is set to `column` or `column-reverse`.


**4. What is the difference between fixed layout, adaptive layout, fluid layout, and responsive layout?**

Fixed layout uses fixed widths to determine container sizes and is not responsive to the user's viewport dimensions.

Adaptive layout uses media queries to optimize layout design based on the user's viewport dimensions, but each media query still employs fixed widths.

Fluid layout uses percent based widths and adaptive font-sizes (`rem`, `em`) to dynamically adjust content layout based on the user's viewport dimensions.

Responsive layout = Fluid + Adaptive layout. Responsive layout employs both media queries and percent based widths to dynamically optimize content layout based on the user's viewport.


**5. Why do we need to use the CSS property `max-width` on the outer most container in a responsive website?**

The `max-width` setting on the outer most container keeps the website from spreading out beyond a set width if the user's viewport exceeds the max-width setting.

[GitHub HTML Preview](https://htmlpreview.github.io/?https://github.com/cesarnml/Sprint-Challenge--UI-Responsive/blob/master/index.html)
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<!-- markdownlint-disable -->
# Assessing Your User Interface and Responsive Design Learning

* The objective of this challenge is test your knowledge on all of the topics surrounding user interface and responsive web design you learned this week.
Expand Down
Loading