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

Modified documents: html+css #981

Open
wants to merge 2 commits into
base: master
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
240 changes: 239 additions & 1 deletion css/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,241 @@
/* Use your own code or past solution for Great Idea Web Page CSS 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;
}

/* Set every element's box-sizing to border-box */
* {
box-sizing: border-box;
}

html, body {
height: 100%;
font-family: 'Titillium Web', sans-serif;
}

h1, h2, h3, h4, h5 {
font-family: 'Bangers', cursive;
letter-spacing: 1px;
margin-bottom: 15px;
}

/* Your code starts here! */
nav{
margin: 20px;
padding: 20px;
word-spacing: 50px;
text-align: center;
}

a{
text-decoration: none;
color: darkgrey;
}

.nav-links{
margin: 20px;
}

header{
margin: 20px;
padding: 20px;
text-align: center;
}

h1{
margin: 50px;
width: 300px;
height: 200px;
font-size: 75px;
}
button{
font-size: 30px;
font-family: 'Titillium Web', sans-serif;
padding: 3px 30px;
border: 1px solid black;
}

div{
display: inline-block;
}

.top-content{
height: 200px;
}

.top-content .items{
width: 525px;
height: 200px;
padding: 25px;
margin: 50px;
box-align: center;
}

.middle-img{
width: 1100px;
margin-left: 125px;
margin-right:125px;
}

.bottom-content{
height: 200px;
}

.bottom-content .item{
width: 290px;
height: 200px;
padding: 25px;
margin: 50px;
display: inline-block;
}

address{
margin: 75px;
}

footer{
text-align: center;
}

@media (max-width: 800px){
nav{
display: flex;
flex-direction: column-reverse;
}

.header-img{
display: none;
}

.top-content{
height: 150px;
margin: 20px;
}

.top-content .items{
width: 45%;
height: 125px;
padding: 0px;
margin: 10px;
}

.middle-img{
height: 100px;
width: 95%;
margin: 25px;
}

.bottom-content{
height: 150px;
margin: 20px;
}

.bottom-content .item{
width: 30%;
height: 125px;
padding: 0px;
margin: 10px;
}

address{
width: 30%;
margin: 25px;
}
}

@media (max-width: 500px){
.nav-links{
display: flex;
flex-direction: column;
}

.nav-links a{
font-size: 24px;
margin: 10px;
}

.header-img{
display: none;
}

.top-content .items{
display: flex;
flex-direction: column;
margin: 10px;
width: 95%;
height: 75px;
font-size: 14px;
}

.middle-img{
height: 75px;
width: 95%;
margin: 25px;
}

.bottom-content{
height: 205px;
}

.bottom-content .item{
display: flex;
flex-direction: column;
margin: 10px;
width: 95%;
height: 75px;
font-size: 14px;
}

address{
font-size: 14px;
margin: 25px;
}

footer{
font-size: 14px;
}
}
83 changes: 81 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!doctype html>

<html lang="en">
<head>
<head meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<title>Great Idea - Responsive I</title>

Expand All @@ -11,6 +11,85 @@
</head>

<body>
<!-- Use past code you created here for Great Idea Web Page or past solution for Great Idea Web Page HTML here! -->
<nav>
<div class="nav-links">
<a href="#">Services</a>
<a href="#">Product</a>
<a href="#">Vision</a>
<a href="#">Features</a>
<a href="#">About</a>
<a href="#">Contact</a>
</div>
<div>
<img class="logo" src="img/logo.png" alt="Great Idea! Company logo.">
</div>
</nav>

<header>
<div>
<h1>
Innovation<br>
On<br>
Demand
</h1>
<button>
Get Started
</button>
</div>

<div class="header-img">
<img src="img/header-img.png" alt="Image of a code snippet.">
</div>
</header>

<hr style="width:90%; height:1px; background-color: black; border:none;" />

<section class="top-content">
<div class="items">
<h5>Features</h5>
Aliquam elementum magna eros, ac posuere elvit tempus et. Suspendisse vel tempus odio, in interdutm nisi. Suspendisse eu ornare nisl. Nullam convallis augue justo, at imperdiet metus scelerisque quis.
</div>
<div class="items">
<h5>About</h5>
Aliquam elementum magna eros, ac posuere elvit tempus et. Suspendisse vel tempus odio, in interdutm nisi. Suspendisse eu ornare nisl. Nullam convallis augue justo, at imperdiet metus scelerisque quis.
</div>
</section>

<img class="middle-img" src="img/mid-page-accent.jpg" alt="Image of code snippets across the screen">

<section class="bottom-content">
<div class="item">
<h5>Services</h5>
Aliquam elementum magna eros, ac posuere elvit tempus et. Suspendisse vel tempus odio, in interdutm nisi. Suspendisse eu ornare nisl. Nullam convallis augue justo, at imperdiet metus scelerisque quis.
</div>

<div class="item">
<h5>Product</h5>
Aliquam elementum magna eros, ac posuere elvit tempus et. Suspendisse vel tempus odio, in interdutm nisi. Suspendisse eu ornare nisl. Nullam convallis augue justo, at imperdiet metus scelerisque quis.
</div>

<div class="item">
<h5>Vision</h5>
Aliquam elementum magna eros, ac posuere elvit tempus et. Suspendisse vel tempus odio, in interdutm nisi. Suspendisse eu ornare nisl. Nullam convallis augue justo, at imperdiet metus scelerisque quis.
</div>
</section><br>
<br>
<br>
<hr style="width:90%; height:1px; background-color: black; border:none;" />

<address>
<h5>Contact</h5>
123 Way 456 Street<br>
Somewhere, USA<br>
<br>
1 (888) 888-8888<br>
<br>
[email protected]
</address>

<footer>
Copyright Great Idea! 2018
</footer>

</body>
</html>