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
24 changes: 7 additions & 17 deletions box-model1.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<meta name="description" content="">
<meta name="author" content="">

<link href="./css/style.css" rel="stylesheet">
<link href="./css/style1.css" rel="stylesheet">
<script type="text/javascript" src="./js/header-functions.js"></script>

</head> <!-- header ends here -->
Expand All @@ -33,22 +33,12 @@
<!-- ---------------------------------------------------------------------------------- -->
<!-- ---------------------------------------------------------------------------------- -->
<body> <!-- body begins here -->


The quickest of brown foxes.




<!-- ====================================================== -->
<!-- ====================================================== -->
<footer>
<!-- footer of page begins here -->
<script type="text/javascript" src="./js/footer-functions.js"></script>
</footer> <!-- footer of page ends here -->
<!-- ====================================================== -->
<!-- ====================================================== -->

<h1>Box Model Visual</h1>
<div>
<div id="innerdiv1">
Inner DIV
</div>
</div>
</body>
<!-- ---------------------------------------------------------------------------------- -->
<!-- ---------------------------------------------------------------------------------- -->
Expand Down
38 changes: 21 additions & 17 deletions box-model2.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<meta name="description" content="">
<meta name="author" content="">

<link href="./css/style.css" rel="stylesheet">
<link href="./css/style2.css" rel="stylesheet">
<script type="text/javascript" src="./js/header-functions.js"></script>

</head> <!-- header ends here -->
Expand All @@ -33,22 +33,26 @@
<!-- ---------------------------------------------------------------------------------- -->
<!-- ---------------------------------------------------------------------------------- -->
<body> <!-- body begins here -->


The quickest of brown foxes.




<!-- ====================================================== -->
<!-- ====================================================== -->
<footer>
<!-- footer of page begins here -->
<script type="text/javascript" src="./js/footer-functions.js"></script>
</footer> <!-- footer of page ends here -->
<!-- ====================================================== -->
<!-- ====================================================== -->

<h1>Box Model Visual</h1>
<div id="parentdiv1">
<div id="innerdiv1">
Inner DIV 1
</div>

<div id="innerdiv2">
Inner DIV 2
</div>
</div>

<div id="parentdiv2">
<div id="innerdiv3">
Inner DIV 1
</div>

<div id="innerdiv4">
Inner DIV 2
</div>
</div>
</body>
<!-- ---------------------------------------------------------------------------------- -->
<!-- ---------------------------------------------------------------------------------- -->
Expand Down
9 changes: 0 additions & 9 deletions css/style.css

This file was deleted.

15 changes: 15 additions & 0 deletions css/style1.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
div {
width:200px;
height:300px;
background-color: red;
padding: 0px;
margin: 0px;
}

div div {
width:100px;
height:100px;
background-color: blue;
padding: 10px;
margin: 0px;
}
53 changes: 53 additions & 0 deletions css/style2.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
#parentdiv1 {
width:200px;
height:300px;
background-color: red;
border: 2px solid green;
padding: 10px;
margin: 0px;
}

#parentdiv2 {
width:200px;
height:300px;
background-color: red;
border: 2px solid green;
padding: 10px;
margin: 50px;
}

#innerdiv1 {
width:100px;
height:100px;
background-color: blue;
border: 2px solid white;
padding: 0px;
margin: 0px;
}

#innerdiv2 {
width:125px;
height:100px;
background-color: beige;
border: 2px solid white;
padding: 0px;
margin: 0px;
}

#innerdiv3 {
width:100px;
height:100px;
background-color: blue;
border: 2px solid white;
padding: 0px;
margin: 0px;
}

#innerdiv4 {
width:100px;
height:100px;
background-color: beige;
border: 2px solid white;
padding: 0px;
margin: 0px;
}
20 changes: 2 additions & 18 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">

<link href="./css/style.css" rel="stylesheet">
<script type="text/javascript" src="./js/header-functions.js"></script>

</head> <!-- header ends here -->
Expand All @@ -33,22 +31,8 @@
<!-- ---------------------------------------------------------------------------------- -->
<!-- ---------------------------------------------------------------------------------- -->
<body> <!-- body begins here -->


The quickest of brown foxes.




<!-- ====================================================== -->
<!-- ====================================================== -->
<footer>
<!-- footer of page begins here -->
<script type="text/javascript" src="./js/footer-functions.js"></script>
</footer> <!-- footer of page ends here -->
<!-- ====================================================== -->
<!-- ====================================================== -->

<p>Click <a href="box-model1.html">here</a> to view box model 1.</p>
<p>Click <a href="box-model2.html">here</a> to view box model 2.</p>
</body>
<!-- ---------------------------------------------------------------------------------- -->
<!-- ---------------------------------------------------------------------------------- -->
Expand Down