Skills based review for the Junior Web Developer CSS Introduction lesson.
- When you get into your breakout room, select a team member to share their screen and record the answers the team finds
- With your Breakout Team, scroll through the CSS Code below and answer the questions in the comments
- Team members who are not sharing screen should also fill in the answers and make the changes in their own code
- Use your Google Foo skills to find the answers and explore what CSS can offer your website
- All team members should search for the answers, use the chat to send helpful links that are found
- Feel free to copy and paste useful links into comments in this file for easy reference in the future
- Communicate and work with your team to ensure all members understand the answers before you move on to answering the next question
- If you finish early, try the BONUS questions at the bottom of the file, and/or explore any concepts you come across that you find interesting or want to learn more about!
- HAVE FUN! :)
- Begin by forking this project into a personal repository.
- To do this, click the
Fork
button located at the top right of this page.
- To do this, click the
- Navigate to your github profile to find the newly forked repository.
- Clone the repository from your account into the directory on your computer that you use to keep your projects (ex.
dev-projects
directory). - Open the newly cloned project in a code editor (ex. Visual Studio Code).
- from your text editor (i.e. - Visual Studio Code), select:
File
>Add Folder to WorkSpace
- Select the directory you use to store your projects (ex.
dev-projects
directory) - From the text editor,in the directory you use to store your projects (ex.
dev-projects
directory), locate the newly cloned project - Expand the project from the project explorer (may just be called
explorer
) - Modify the
index.html
andassets/css/style.css
per the directions provided.
-
Open in browser/live server so you can see your changes in real time and notice how the code morphs the
live browser page
-
Start by linking your css file to your html file
- Add a universal selector at the top of the CSS file (
*
), and within that ruleset -- add a property ofbox-sizing
with a value ofborder-box
-
Change the font on the page to be more modern. - Go to the Google Fonts website and find the
'Open Sans'
font. - Open the font, and select: 'Light 300', Light 300 Italic', 'Regular', 'Regular 400 Italic', 'SemiBold 600', 'SemiBold 600 Italic', 'Bold 700', 'Bold 700 Italic' - Copy the entire<link rel=...stylesheet">
link in the pop-up side menu (you may have to widen your screen to view). Then paste the stylesheet link in the index.html, above the local CSS file. - Copy the entirefont-family rule
, and paste in Step 5. -
In the
body
selector ruleset, add a font-family property with a value of'Open Sans', sans-serif
-
On the same
body
selector, replace thebackground-color property
with thebackground-image property
. Add a value oflinear gradient
withwhitesmoke
as the first value, andrgb(35, 47, 58)
as the second value. -
Convert the
padding
property on theli a
ruleset to the shorthand syntax; -
Add a
text-align
property with a value ofcenter
to the sameli a
ruleset. -
Add Add a
text-align
property with a value ofcenter
to the.center-title
class selector. -
a. Navigate to the
index.html
and remove thewidth
attribute -
b. Add a
width
property with the value of30%
to thefigure
selector. -
Add a
flex-direction
property with a value of column to thesection
,#about-sec
, andfigure
selectors. -
In the
aside
element selector ruleset:- Use the shorthand
border
property to add a4px double black
border - Add a
margin
property and set the values to reflect1em
on the top and bottom, and the sides to0
; - Add a
color
property, with a value ofrgba(35, 47, 58, 0.05)
- Add a
background-color
ofrgba(35, 47, 58, 0.05)
- Use the shorthand
-
Add an
aside p
element selector directly underneath theaside
selector, above the#concert-schedule-sec
:- Add a
font-weight
property with a value of600
- and a
font-size
property with a value of1.25em
- Add a
background-color
property, with a value ofrgb(35, 47, 58)
- Add a
color
property, with a value ofwhitesmoke
- Add a
padding
property, with a value of0.5em
on all sides - Add a
margin
property, with a value of0
- Add a
text-transform
property, with a value ofuppercase
- Add a
border-bottom
of4px double rgba(0, 0, 0, 0.77)
- Add an
opacity
property, with a value of0.6
- Add a
-
Add an
aside ul li a
element selector directly underneath theaside p
selector, above the#concert-schedule-sec
:- Add a
text-align
property with a value ofjustify
- and a
padding
property with a value of0
- Add a
color
property, with a value ofrgb(35, 47, 58)
- Add a
text-decoration
property, with a value ofunderline
- Add a
-
Add an
aside ul
element selector directly underneath theaside p
selector, above theaside ul li a
:- Add a
font-size
property with a value of0.9em
- Add a
margin
of1em
on all sides - Add a
padding
property of0
on the top and bottom,0.75em
on the right, and1em
on the left
- Add a
-
Add a
figcaption
element selector ruleset directly underneath thefigure
selector. -
In the figcaption ruleset:
- Add a
property-value pair
that willmake the text italic
- Add a
background color
property, and set the value torgba(35, 47, 58)
- Set the
color
of the figcaption text towhitesmoke
- Using the
padding shorthand
property, add0.25em
of padding on all sides - Add an
opacity
property, and set the value to0.5
- Add a
font-size
property, and set the value to0.85em
;
- Add a
-
Around line 55, locate the
#about-sec
selector, directly below that, and above the#about-sec div
selector, add an#about-sec h2
ruleset:- Add a
font-size
property, with a value of1.95em
- and a
padding
property, with a value of0 1.5em
- Add a
-
Directly below the
#about-sec h2
ruleset, add an#about-sec #about-blurb
ruleset:- Add a
padding
property, with a value of0 2.5em
- Add a
-
Locate the
Table - Concert Schedule
in both theindex.html
andstyle.css
, as well as in thebrowser
-
In the
#concert-schedule-sec
ruleset:- Add a
color
property, and a value ofrgb(255, 54, 154)
- Add a
background-color
property, with a value ofblack
- Replace the
max-width
property with thewidth
property, and set the value to100vw
- Add a
padding
property with a value of2em
;
- Add a
-
Add a
#concert-schedule-sec h3
element selector ruleset directly underneath the last selector.- Add a
font-size
property with a value of2em
;
- Add a
Last: Continue to modify the colors, borders, and transitions however you like with the remaining elements! Experiment with positioning, margins, padding, user-experience, etc.
*** BONUS ***
- Find a website with a list of the movies Harry Styles has been in and hyperlink it to the
See Movies
a tag. Can you get the link to open in a new tab? - Link the navigation list items to jump to the corresponding section on the page
- From a terminal navigate to the root directory of the cloned project.
- From the root directory of the project, execute the following commands:
git add .
- Add all files in current directory to the staging area
git commit -m 'I have made an edit to a file!'
- Save all staged changes to local repository
git push -u origin main
- Push changes from local repository to remote repository
- From the browser, navigate to the forked project from your Github account.
- Click the
Pull Requests
tab. - Select
New Pull Request