Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 36 additions & 19 deletions box-model1.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,45 @@
<script type="text/javascript" src="./js/header-functions.js"></script>

</head> <!-- header ends here -->
<!-- ----------------------------------------------------------------- -->
<!-- ----------------------------------------------------------------- -->
<!-- ----------------------------------------------------------------- -->












<!-- ---------------------------------------------------------------------------------- -->
<!-- ---------------------------------------------------------------------------------- -->
<!-- ---------------------------------------------------------------------------------- -->
<body> <!-- body begins here -->


The quickest of brown foxes.
<div style="
top: 0;
left: 0;
position: absolute;
width:200px;
height:200px;
background-color: red;
padding: 10px;
border: 2px solid green;
margin: 0;">
<div id="innerdiv1" style="
top: 0px;
left: 0px;
position: absolute;
width:100px;
height:100px;
background-color: blue;
padding: 0px;
border: 0px;
margin: 0;">
Inner div
</div>

<!--<div id="innerdiv2" style="
top: 150px;
left: 10px;
width:150px;
position: absolute;
height:100px;
background-color: beige;
padding: 10px;
border: 2px solid white;
margin: 20;">
Inner div2
</div> -->
</div>



Expand Down
109 changes: 82 additions & 27 deletions box-model2.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,33 +14,88 @@
<script type="text/javascript" src="./js/header-functions.js"></script>

</head> <!-- header ends here -->
<!-- ----------------------------------------------------------------- -->
<!-- ----------------------------------------------------------------- -->
<!-- ----------------------------------------------------------------- -->












<!-- ---------------------------------------------------------------------------------- -->
<!-- ---------------------------------------------------------------------------------- -->
<!-- ---------------------------------------------------------------------------------- -->
<body> <!-- body begins here -->


The quickest of brown foxes.




<!-- ====================================================== -->
<body>
<!-- body begins here -->
<div>
<div style="
top: 0;
left: 0;
position: absolute;
width:200px;
height:300px;
background-color: red;
padding: 10px;
border: 2px solid green;
margin: 0;">
<div id="innerdiv1" style="
top: 10px;
left: 30px;
position: absolute;
width:100px;
height:120px;
background-color: blue;
padding: 0px;
border: 2px solid white;
margin: 0;">
Inner DIV1
</div>

<div id="innerdiv2" style="
top: 150px;
left: 10px;
width:100px;
position: absolute;
height:50px;
background-color: beige;
padding: 10px;
border: 2px solid white;
margin: 20;">
Inner DIV2
</div>
</div>

<div style="
top: 350px;
left: 50px;
position: absolute;
width:200px;
height:300px;
background-color: red;
padding: 10px;
border: 2px solid green;
margin: 0;">
<div id="innerdiv3" style="
top: 10px;
left: 30px;
position: absolute;
width:100px;
height:120px;
background-color: blue;
padding: 0px;
border: 2px solid white;
margin: 0;">
Inner DIV3
</div>

<div id="innerdiv4" style="
top: 150px;
left: 10px;
width:100px;
position: absolute;
height:50px;
background-color: beige;
padding: 10px;
border: 2px solid white;
margin: 20;">
Inner DIV4
</div>
</div>
</div>




<!-- ====================================================== -->
<!-- ====================================================== -->
<footer>
<!-- footer of page begins here -->
Expand Down
2 changes: 1 addition & 1 deletion css/style.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
body {
background-color: navy;
background-color: white;
}


Expand Down
29 changes: 2 additions & 27 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,34 +14,9 @@
<script type="text/javascript" src="./js/header-functions.js"></script>

</head> <!-- header ends here -->
<!-- ----------------------------------------------------------------- -->
<!-- ----------------------------------------------------------------- -->
<!-- ----------------------------------------------------------------- -->












<!-- ---------------------------------------------------------------------------------- -->
<!-- ---------------------------------------------------------------------------------- -->
<!-- ---------------------------------------------------------------------------------- -->
<body> <!-- body begins here -->


The quickest of brown foxes.




<!-- ====================================================== -->
<!-- ====================================================== -->
<a href="./box-model1.html"> model1</a>
<a href="./box-model2.html"> model2</a>
<footer>
<!-- footer of page begins here -->
<script type="text/javascript" src="./js/footer-functions.js"></script>
Expand Down