Create a calendar to start off the new month!
Use HTML Divs, Headers and CSS FlexBox to create a web calendar!
To complete this project, studnets should have the following:
- Basic understanding of HTML structures and attributes.
- Basic understanding of CSS Flexbox.
HTML | Description |
---|---|
h1 | The largest header element. |
h2 | The 2nd largest header element. |
div | A container element. |
To complete Part I, fulfill the following requirements:
- Set up your project file structure through the command line.
- Create the following:
- HTML file
- CSS file
- Link all of your files correctly.
To complete Part II, fulfill the following requirements:
- Create a
div
with anid
of "container".
- Inside of this div, create the following with the correct indentations:
div
with anid
of "title".h1
with text "January".
div
with anid
of "days-of-week".h2
with text "M"h2
with text "T"h2
with text "W"h2
with text "Th"h2
with text "Fri"h2
with text "Sat"h2
with text "Sun"
div
with anid
of "day-container".div
with aclass
of "row".div
with aclass
of "day" and text "01".div
with aclass
of "day" and text "02".div
with aclass
of "day" and text "03".div
with aclass
of "day" and text "04".div
with aclass
of "day" and text "05".div
with aclass
of "day" and text "06".div
with aclass
of "day" and text "07".
div
with aclass
of "row".div
with aclass
of "day" and text "08".div
with aclass
of "day" and text "09".div
with aclass
of "day" and text "10".div
with aclass
of "day" and text "11".div
with aclass
of "day" and text "12".div
with aclass
of "day" and text "13".div
with aclass
of "day" and text "14".
div
with aclass
of "row".div
with aclass
of "day" and text "15".div
with aclass
of "day" and text "16".div
with aclass
of "day" and text "17".div
with aclass
of "day" and text "18".div
with aclass
of "day" and text "19".div
with aclass
of "day" and text "20".div
with aclass
of "day" and text "21".
div
with aclass
of "row".div
with aclass
of "day" and text "22".div
with aclass
of "day" and text "23".div
with aclass
of "day" and text "24".div
with aclass
of "day" and text "25".div
with aclass
of "day" and text "26".div
with aclass
of "day" and text "27".div
with aclass
of "day" and text "28".
div
with aclass
of "row".div
with aclass
of "day" and text "29".div
with aclass
of "day" and text "30".
To complete Part II, fulfill the following requirements:
- Target the
element
"body".
- Set the
margin
to 0.
- Target the
id
of "container".
- Set the
width
andheight
to the full view height and width .
- Target the
id
of "title".
- Activate flexbox!
- Center the items horizontally.
- Target the
id
of "days-of-week".
- Activate flexbox!
- Set the direction of elements to row with flexbox.
- Put space around the elements horizontally using flexbox.
- Target the
id
of "day-container".
- Set the
width
andheight
to the full width and height such that it is as big as its parent container. - Activate flexbox!
- Set the direction of the elements to a column using flexbox.
- Target the
class
of "row".
- Set the
width
to 100%. - Set the
height
to 20%. - Activate flexbox!
- Set the direction of elements to row using flexbox.
- Target the
class
of "day".
- Use the property
flex-grow
to make the items take up the same width to fill up the row. Look up the property flex-grow and see what it does! - Set the
padding
to 20px. - Give your days a border!
- Add HTML and CSS to one special day on your January calendar! In the HTML, tell us what the day is about. In your CSS, make that day stand out!
- Use JavaScript to create Event Listeners that will listen for a click on a day. If a day is clicked, allow the user to add (append) an event on there! (On click, pop up a box for us to fill in the event details, then take these details and append it to that day upon submission!)