Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

made option 3 responsive to different screen sizes #1135

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5503
}
28 changes: 26 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,33 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style/index.css"/>
<title>Mike Gulotta's Website</title>
</head>
<body>

<section class="topSection">
<h1>Mike Gulotta</h1>
<nav>
<button><a href="index.html">Home</a></button>
<button><a href="about.html">About</a></button>
<button><a href="contact.html">Contact</a></button>
<button><a href="projects.html">Projects</a></button>
</nav>
<h2>Introduction to my projects</h2>
<p>This is my website that contains all of my projects!<br> <br>Please feel free to browse the site and let me know if you have any questions or comments. <br><br> You will be able to contact me using the button within the header, or the button within the footer. <br> <br> Enjoy! <br></p>
<img src="https://picsum.photos/1200/200" alt="topImage"/>
</section>
<section class="middleSection">
<img src="https://picsum.photos/id/10/300/600" alt="">
<img src="https://picsum.photos/id/11/300/600" alt="">
<img src="https://picsum.photos/id/12/300/600" alt="">
<img src="https://picsum.photos/id/13/300/600" alt="">
<div class="description">
As you can see, here are all of my projects. I really like these projects and I hope you enjoy them too!
</div>
</section>
<footer>
<button><a href="contact.html">Contact Me</a></button>
</footer>
</body>
</html>
97 changes: 96 additions & 1 deletion style/index.css
Original file line number Diff line number Diff line change
@@ -1 +1,96 @@
/* Add CSS styling here */
/* Add CSS styling here */
/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
/* border: 0; */
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
/* CSS below */

h1 {
font-size: 5rem;
}

h2 {
font-size: 2rem;
}

button {
display: inline-block;
border-radius: 5px;
}

.topSection {
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
}

.topSection img {
margin-top: 5px;
}

footer {
background-color: lightgrey;
text-align: center;
padding: 40px;
}

.middleSection {
display: flex;
justify-content: space-between;
margin-top: 10px;
margin-bottom: 10px;
}

.description {
display: flex;
width: 200px;
padding: 20px;
justify-content: center;
align-items: center;

}