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
22 changes: 20 additions & 2 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
h1 {
color: salmon;
body{
font-family:'Lato', sans-serif;
background-color: rgb(240,248,255);
text-align: center;
}
div{
display: inline-block;
}
.column {
float: center;
width: 33.33%;
padding: 5px;
}
img{
width: 300px;
height: 300px;
}
button{
display: inline-block;
font-size: 12px;
}
1 change: 1 addition & 0 deletions flex-vs-grid.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
## What I learned about Flexbox and Grid is that while one is more focused on changing the space around the content, the other is more focused on making changes to the content. A difference that Flexbox and Grid have is that Flexbox works for chaging the layout for either a row or column. With Grid you can change the layout of the coloumm and row at the same time.
49 changes: 38 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,39 @@
<!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>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>AirBnb</title>
</head>
<body>
<h1>Meet Guidebooks</h1>
<p>Discover hundreds of local spots recommeded by Aribnb hosts</p>
<div class="column">
<img src="https://static.trulia-cdn.com/images/hyperlocal/san-francisco/related-neighborhoods/www_related_russianhill.jpg" alt"San Francisco" style="width:100%">
<p>San Francisco</p>
</div>
<div class="column">
<img src="https://cdn.britannica.com/80/115080-050-46BE2B70/Brooklyn-Bridge-East-River-New-York-City.jpg" alt"New York" style="width:100%">
<p>New York</p>
</div>
<div class="column">
<img src="https://github.com/Voya96/CSS-positioning-practice/blob/master/img/london.jpg?raw=true" alt="London" style="width:100%">
<p>London</p>
</div>
<button>See All Guidebooks</button>
<h1>Just for the weekend</h1>
<p>Discover new, inspiring places close to home</p>
<div class="column">
<img src="https://cdn-image.departures.com/sites/default/files/1571867316/header-vineyard-napa-valley-california-NAPAINSTA1019.jpg" alt="Napa" style="width:100%">
<p>Napa</p>
</div>
<div class="column">
<img src="https://keyassets.timeincuk.net/inspirewp/live/wp-content/uploads/sites/34/2019/05/Sonoma-wine-region.jpg" alt="Sonoma" style="width:100%">
<p>Sonoma</p>
</div>
<div class="column">
<img src="https://photos.smugmug.com/GALLERIES/Landscapes-1/San-Francisco/i-v7v3Cq7/1/b4b01159/L/DSC_5199-Edit-Edit-L.jpg" alt="San Francisco" style="width:100%">
<p>San Francisco</p>
</div>
<button>See All Destinations</button>
</body>
</html>