Lecture-17-React Part 3 - George Mason University
React Part 3
SWE 432, Fall 2019
Web Application Development
Review: Cascading selectors
?
?
?
?
LaToza
What happens if more than one rule applies?
Most specific rule takes precedence
? p b is more specific than p
? #maximizeButton is more specific than button
If otherwise the same, last rule wins
Enables writing generic rules that apply to many
elements that are overriden by specific rules
applying to a few elements
GMU SWE 432 Fall 2019
2
Review: Centering content
?
?
?
LaToza
How do you center an element inside a container?
Step 1: Must first ensure that element is narrower
than container.
? By default, element will expand to fill entire
container.
? So must usually explicitly set width for element.
Step 2: Use auto value for left and right to create
equal gaps
GMU SWE 432 Fall 2019
3
Review: Transitions
?
LaToza
transition: [property time], , [property time]
? When new class is applied, specifies the time it
will take for each property to change
? Can use all to select all changed properties
GMU SWE 432 Fall 2019
4
Review: Fixed width vs. liquid layouts
?
Fixed width
? Use width=[num]px to force specific sizes
Allows for tightest control of look and feel
? But can end up with extra whitespace around edge of web page
Liquid layout
? Use width=[num]% to size relative to container sizes
? Pages expand to fill the entire container size
? Problems
? Wide windows may create long lines of text can be difficult to
read
? Very narrow windows may squash words, breaking text onto
many lines
? (Partial) solution
? Can use min-width, min-height, max-width, max-height to set
bounds on sizes
?
?
LaToza
GMU SWE 432 Fall 2019
5
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- reactjs introduction stanford university
- react mit 6 470
- by onlineinterviewquestions
- chapter 1 getting started with reactjs
- lecture 17 react part 3 george mason university
- react hooks cheat sheets publicis sapient
- q u e s t i o n 1 1 p o i n t s stanford university
- advanced react virtual dom and performance
- useref opinionated guide to react
Related searches
- george mason university mason core
- george mason core requirements
- george mason university graduate school
- george mason university information technology
- george mason core courses
- george mason core
- george mason university library catalog
- george mason university course catalog
- george mason university course schedule
- george mason university admissions requirements
- george mason university reputation
- george mason university sat requirements