Topics: The Box Model , Height and Width , Borders , Border Radius , Padding , Margins , Auto , Margin Collapse , Minimum and Maximum Height and Width , Overflow , Resetting Defaults , Visibility
- Create a html file with your name like
john.html
- Add current code to that file:
<!DOCTYPE html>
<style>
/* your css code here */
</style>
<html>
<body>
<!-- your html code here -->
</body>
</html>
-
Create a
div
and set the class tocontainer
-
Style
container
class to have a border 10px solid green and set border-radius to 30px. -
Inside this div create another div and set the class to
circle
. -
Change
cricle
style to shap a blue circle with border-radius attribute. -
Add another div in the container and name the class to header.
-
Enter some text into header and set style to have padding 10 and margin 10 and border 10px dotted red.
-
Make another div next to header and name it content. Make it centered horizontally with 500px width.
-
Enter some text into content and set border to 20px solid yellow.
-
Change the default margin and padding for all element to 10px.
-
Create an list of 3 items and set left marigns of item 1, item 2 and item 3 item to 10px, 20px and 30px respectively. Then, add the 4th item and hide it with visibility property.
-
Add a div with footer class at the end of container div and set max-width to 700px. Set margin and padding to 20 px and border to 15px dashed orange.
Send Pull Request. Check how to deliver your code: https://codingwithbasir.com/how-to-deliver-projects/
Download Free eBook https://codingwithbasir.com/download