You are going to try to solve as much tasks as possible. Its a Styling Marathon
- Fork and clone this repo
- You will find a folder for each challenge
- The
index.html
for each challenge is already there, you do not need to create it. - Import your
CSS
only using astyle
sheet for each folder separately - Use live server to run the server, otherwise, some pages will break!
-
You will be adding your code in the
index.html
that is inside folder 1 -
Create style.css file and link it to your html file
-
Try to create this layout:
- Harry Potter cover image can be found in the
assets
folder - To center text you can use
text-align
- You can get fonts from Google Fonts. You can use any fonts you like for the title.
- Research how you can use google fonts in your HTML website!
- You will be adding your code in the
index.html
that is inside folder 2 - Create style.css file and link it to your html file
- Try to create this layout:
- Use
flexbox
- Image is in the
assets
folder, usebackground-image
- Learn how you center elements in css here
- To read more about
flexBox
, check CSS Tricks
- To read more about
- To add shadow easily, use this website that provides you with the shadow css code.
- You don't need to touch
index.html
this time, just take a look of the classes that are assigned to each html element. - Your
style.css
has all classes that you need this time, you only need to fill the classes with your stylings. - Your page should look like this
- Container has to have a height of 300px and width 400px
- The container should clip the list inside it so the list doesn't overflow. With that, you will have to scroll to see all items
- Have a nicer font for both the title and list
- Give the
head
class abackground-color
and acolor
- The head has to be sticky, which means if you scroll down, the head doesn't disappear.
- Give the list a
background-color
and acolor
- Make your list scroll using
overflow
- You will find the
row
class in theindex.js
,ìndex.js
is rendering a list frompeople.js
( you do not need to touch is, it's only so you know what is therow
class controlling)
- An example of a scrollable menu is the History from the
calculator.js
style.css
is ready with the classes- Check out Overflow attribute
- You can use this coolors to find colors that you like
-
You don't need to touch
index.html
this time, just take a look of the classes that are assigned to each html element. -
Your
style.css
has all classes that you need this time, you only need to fill the classes with your stylings. -
Reuse the image from challenge 1, to create the layout provided
-
Use
flexbox
for centering your card -
You will be using
position
in couple of things