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
104 changes: 103 additions & 1 deletion css/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,105 @@
body{
background-color: rgb(214, 214, 214);
font-family: Arial, Helvetica, sans-serif;
}
h1 {
color: salmon;
color: rgb(65, 61, 61);
text-align: center;

}
h3 {
color: rgb(65, 61, 61);
text-align: center;
font-size: smaller;
margin-top: -10px;
}
.sf {
height: 310px;
width: 275px;
display: grid;
grid-column-start: -5;
margin-top: 15px;
}
.ny {
height: 310px;
width: 275px;
display: grid;
grid-column-start: -4;
margin-top: 15px;
}
.lnd {
height: 310px;
width: 275px;
display: grid;
grid-column-start: -3;
margin-top: 15px;
}
#first {
display: grid;
grid-template-columns: 20% 20% 20% 20% 20%;
grid-template-rows: 20% 20% 20% 20% 20%;
grid-column-start: -3;
}
p {
display: block;
width: 250px;
background-color: white;
margin: auto;
text-align: center;
line-height: 30px;
}
.buttonone{
color: grey;
margin-top: 40px;
font-family: Arial, Helvetica, sans-serif;
width: 275px;
margin-right: 50px;
height: 40px;

}




.np {
height: 310px;
width: 275px;
display: grid;
grid-column-start: -5;
margin-top: 15px;
}
.sanfran {
height: 310px;
width: 275px;
display: grid;
grid-column-start: -4;
margin-top: 15px;
}
.sm {
height: 310px;
width: 275px;
display: grid;
grid-column-start: -3;
margin-top: 15px;
}
#second {
display: grid;
grid-template-columns: 20% 20% 20% 20% 20%;
grid-template-rows: 20% 20% 20% 20% 20%;
grid-column-start: -3;
}
p {
display: block;
width: 250px;
background-color: white;
margin: auto;
text-align: center;
line-height: 30px;
}
.buttontwo{
color: grey;
margin-top: 40px;
font-family: Arial, Helvetica, sans-serif;
width: 275px;
margin-right: 50px;
height: 40px;
1 change: 1 addition & 0 deletions flex-vs-grid.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Both flexbox and grid are helpful but for different situations. Flexbox is aimed more towards columns and rows, where as the grid is focused on squares or a grid across the web page. I would use flexbox to coordinate multiple items across rows and large portions of the webpage. I would then go in and get a bit more specific with my grid, I will choose selected portions of the webpage and move them around to my liking.
42 changes: 41 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,46 @@
<title>Hello Front-End</title>
</head>
<body>
<h1>Hello Front-End</h1>
<h1>Meet Guidebooks</h1>
<h3>Discover hundreds of local spots reccomended by Airbnb hosts</h3>
<div id="first">


<img class= sf src="/Users/ronik686/Desktop/css-basics/CSS-positioning-practice/img/san-francisco-2.jpg"/>



<img class= ny src="/Users/ronik686/Desktop/css-basics/CSS-positioning-practice/img/new-york.jpg"/>



<img class= lnd src="/Users/ronik686/Desktop/css-basics/CSS-positioning-practice/img/london.jpg"/>

</div>
<div style="text-align:center;">
<button class="buttonone">See All Guidebooks</button>
</div>

<h1>Just for the weekend</h1>
<h3>Discover new, inspiring places close to home.</h3>


<div id="second">


<img class= np src="/Users/ronik686/Desktop/css-basics/CSS-positioning-practice/img/napa.jpg"/>



<img class= sanfran src="/Users/ronik686/Desktop/css-basics/CSS-positioning-practice/img/san-francisco.jpg"/>



<img class= sm src="/Users/ronik686/Desktop/css-basics/CSS-positioning-practice/img/sonoma.jpg"/>

</div>
<div style="text-align:center;">
<button class="buttontwo">See All Destinations</button>
</div>
</body>
</html>