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
14 changes: 14 additions & 0 deletions Lesson02-HTML-CSS/homework/Style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

#ThirdDiv { height: 600px; width: 500px; background-color: powderblue; padding: 50px; border-style: solid; border-color: red;
border-width: 5px;

}

#SpanID { font-size: 18px; font-style: italic; margin: 50px;

}

.DivClass {

}

44 changes: 43 additions & 1 deletion Lesson02-HTML-CSS/homework/homework.html
Original file line number Diff line number Diff line change
@@ -1 +1,43 @@
<!-- In this file you will complete the homework found in the homework-readme.md file -->
<!-- In this file you will complete the homework found in the homework-readme.md file -->
<html>
<head>
<link rel="stylesheet" href="./style.css">
<title>Dan's HTML homework</title>
<!--<style>
#ThirdDiv { height: 600px; width: 500px; background-color: powderblue; padding: 50px; border-style: solid; border-color: red;
border-width: 5px;

}

#SpanID { font-size: 18px; font-style: italic; margin: 50px;

}

.DivClass {

}
</style> -->
</head>
<body>
<div class="DivClass">
<h1 style="color:crimson;">Dan Roche</h1>
<h2>Lamda School</h2>
<h3>HTML/CSS homework</h3> </div>
<div class="DivClass"></div>

<div class="DivClass">
<span id="SpanID">Fresh from the sea, grilled with lemon squeezed on top</span><a href="https://littlegeorgia.co.uk/">Little Georgia</a>
</div>

<div id="ThirdDiv">
<ul>
<li>Seafood </li>
<img src=seafoodpic.jpg style="width:400px;height:275px;">
<li>Pasta</li>
<img src=pastacarbonara.jpg style="width:400px;height:275px;">
</ul>
</div>
</body>


</html>
81 changes: 80 additions & 1 deletion Lesson03-CSS-Positioning/homework/homework.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ in this folder, you are in the wrong place.
/* Exercise One: Centering the text in a span */

/* We will start this one off for you: */
#exerciseOne {
#exerciseOne {display:block; text-align:center;

}

Expand All @@ -16,28 +16,107 @@ in this folder, you are in the wrong place.

/* Place code here */

#exerciseTwo {
display:none
}



/* Exercise Three: */

/* Place code here */

#exerciseThree {
position: absolute;
top: 100px;
left: 200px;

}



/* Exercise Four: */

/* Place code here */

#exerciseFour {

position: fixed;
top: 0px;
left: 0px;


}



/* Exercise Five */

/* Place code here */

#exercisefive {

display: flex;
align-items: center;
justify-content: space-between;





/* Exercise Six */

flex-direction: row-reverse;

}

/* Exercise Seven */


#exerciseSeven {
display: flex;
flex-direction: column-reverse;
width: 600px;
height: 500px;
border: 5px solid black;
background-color: grey;
align-items: center;
justify-content: space-between;
}

.itemSpan {
display: block;
text-align: left;
align-self: center;
}

.items {
width: 100px;
height: 100px;
display: flex;
background-color: white;


}

#itemOne {
border: 3px solid green;
align-self: flex-start;
}

#itemTwo {
width: 150px;
height: 150px;
border: 4px dashed orange;
}

#itemThree {
border: 3px solid blue;
}

#itemFour {
border: 4px dashed red;
align-self: flex-end;


}
Loading