This assignment is a collection of several CSS tasks, which help you understand CSS concepts and improve common practices.
Don't forget to use google if you are stuck at something. Google helps more than I can :D
Following are the tasks to do. Make sure to read the guidelines carefully before starting work on each.
CSS method: Inline Styling
Difficulty: Easy
Time: Tiny
Description: Type some text in a h1 tag, and give it a purple color.
CSS method: Inline Styling
Difficulty: Easy
Time: Tiny
Description: Type some text, and change its font to Arial.
CSS method: Style tag (use classes)
Difficulty: Moderate
Time: Small
Description: Modify a p tag to make your own h1 tag. (Replicate the size, weight)
CSS method: Inline Styling
Difficulty: Easy
Time: Small
Description: Give a div tag a width, height and any background color (so that it is visible on the screen), and center it horizontally.
CSS method: Style tag (use classes)
Difficulty: Moderate
Time: Moderate
Description: Make a card, by customizing a div (give it a card class and apply CSS to that class). Use these properties:
CSS method: No limitation
Difficulty: Moderate
Time: Tiny
Description: Add Some content to a page (headings and paragraphs, use lorem ipsum text, or quickly copy some of it by clicking me), and change the font of the whole page to Consolas.
CSS method: Inline Styling
Difficulty: Easy
Time: Tiny
Description:
Create 3 divs, make them squares of considerable size (let's say, 100px). Give all of them three different colors.
Now, you will see something like this:
Please don't even think to use the br tag to achieve spacing.
CSS method: No limitation
Difficulty: Hard
Time: Moderate
Description:
By using any CSS property, Modify any element to make it look like a circle outline, like this:
CSS method: External CSS
Difficulty: Moderate
Time: Long
Description:
Mimic the behaviour (layout, and hover effect) of the button below. Customize the button tag directly, NOT using any class.
These are the properties to keep in mind:
If you are confused about how to customize button layout when the button is hovered, then read the doc again lol
CSS method: External CSS [Use the same style.css file as before, don't create a new one]
Difficulty: Moderate
Time: Long
Description:
Mimic the behaviour of the text below. Use the mono class to target your CSS, not the tag directly.
Use the span tag to show your output.
These are the properties to keep in mind:
How hard do you think these tasks are?
Pack your project in a .zip file. Following folder structure is expected:
Send the .zip file to me
Item | Important points | Marks |
---|---|---|
Task #1: Color |
|
1 |
Task #2: Font |
|
1 |
Task #3: Custom Heading |
|
3 |
Task #4: Sizing & Centering |
|
2 |
Task #5: div customization |
|
5 |
Task #6: Page font | - | 1 |
Task #7: Spacing |
|
3 |
Task #8: Circle |
|
4 |
Task #9: Button customization |
|
5 |
Task #10: Mono class |
|
5 |
TOTAL: | ... |