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
43 changes: 42 additions & 1 deletion css/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,44 @@
h1 {
color: salmon;
color: gray;
text-align:center;
font-size:30px;
}

Body {
Background:lightgray;
}
#top {
color:gray;
text-align:center;
}
#first {
justify-content:flex-start;
height:auto;
font-size:5px;
}

img {
width:150px;
height:100px;
display:inline-block;
text-align:center;
}
div {
text-align:center
}
#middle {
font-size:20px;
font-weight:bold;
color:gray;
text-align:center;
}
#middlebottom {
font-size:10px;
color:gray;
text-align:center;
}
.button {
background-color: white;
width:300px;
margin: 10px auto;
}
1 change: 1 addition & 0 deletions flex-vs-grid.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The main difference I noticed is that flexbox is one-dimensional while CSS grid is two-dimensional. With CSS you have more options on placement, which allows for a more complex design. Both methods allows you to design the layout of the page.
41 changes: 30 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,31 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>Hello Front-End</title>
</head>
<body>
<h1>Hello Front-End</h1>
</body>
<html>
<head>
<h1> Meet Guidebooks </h1>
</head>
<body>
<p id= "top"> Discover hundreds of local spots recommended by AirBnb hosts</p>
<div>
<img id="san francisco" src="https://st3.depositphotos.com/1035886/13092/i/1600/depositphotos_130921190-stock-photo-san-francisco-word-sign.jpg" alt="San Francisco" class="picture">
<img src= "https://pix10.agoda.net/geo/city/318/1_318_02.jpg?s=1920x822" alt="New York" class="picture">
<img src="https://i.pinimg.com/originals/88/a0/93/88a09351421549c52b7d930e9b5b7fcb.jpg" alt="London" class="picture">
</div>
<div class="button">
See All Guidebooks
</div>
<p id ="middle">
Just For The Weekend
</p>
<p id="middlebottom">
discover new, inspiring places, close to home </p>

<div id="second">
<img src= "https://upload.wikimedia.org/wikipedia/commons/1/1b/Napa_Valley_welcome_sign.jpg" alt="Napa">
<img src="https://assets.simpleviewinc.com/simpleview/image/fetch/c_fill,h_800,q_75,w_1200/https://assets.simpleviewinc.com/simpleview/image/upload/v1/clients/sonomavalley/SpringVineyard_SonomaCA_4d4deabf-c1dd-4dae-8210-54cd8ef82bb7.jpg" alt="sonoma">
<img src="https://imperativeinfo.com/wp-content/uploads/2014/02/Golden_Gate_B-sunset-1-1200x900.jpg" alt="sanfran2">
</div>
<div class="button">
See All Destinations
</div>
</body>

</html>