Created
September 11, 2019 09:24
-
-
Save jervalles/cef81b74d954cbeb55e22ede1991a615 to your computer and use it in GitHub Desktop.
css 7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Find the precious!</title> | |
<link rel="stylesheet" href="style.css"> | |
</head> | |
<body> | |
<nav> | |
<ul> | |
<li>FindThePrecious.com</li> | |
<li>Fellows</li> | |
<li>Contact us</li> | |
</ul> | |
</nav> | |
<section> | |
<div class="carousel"></div> | |
</section> | |
<section class="fellowstext"> | |
<h2 id="fellows" class="fellows">Fellows wanted dead <span class="fellows2">(or alive if you want to eat them later)</span></h2> | |
</section> | |
<section class="section_arti"> | |
<article class="arti"></article> | |
<article class="arti"></article> | |
<article class="arti"></article> | |
</section> | |
<hr> | |
<h2 class="formh2">Contact us</h2> | |
<form> | |
<input type="text" placeholder="@"> | |
<input type="text" placeholder="⌂"> | |
<label for="subject"></label> | |
<select id="subject" name="user_subject"> | |
<option value="I have seen one of them">I have seen one of them</option> | |
<option value="2">2</option> | |
<option value="3">3</option> | |
<option value="4">4</option> | |
<option value="5">5</option> | |
</select> | |
<textarea placeholder="Your message"></textarea> | |
</form> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Desktop Styles */ | |
@media only screen and (min-width: 961px) { | |
* { | |
margin-top: 0px; | |
} | |
body { | |
max-width: 1000px; | |
min-width: 768px; | |
margin: auto; | |
} | |
nav { | |
background-color: #5d5d5d; | |
color: #bbbbbb; | |
height: 35px; | |
} | |
ul li { | |
display: inline-block; | |
justify-content: center; | |
padding-right: 15px; | |
padding-left: 15px; | |
padding-top: 5px | |
} | |
ul li:first-child { | |
font-size: 20px; | |
} | |
ul li:hover { | |
background-color: LightGray; | |
border: 1px solid Gray; | |
padding-top: 8px; | |
padding-bottom: 7px; | |
} | |
ul { | |
padding-left: 10px; | |
} | |
.carousel { | |
height: 250px; | |
background-color: #f1efef; | |
} | |
.fellowstext { | |
justify-content: center; | |
font-family: Arial; | |
padding-top: 0px; | |
padding-bottom: 0px; | |
color: #757575; | |
} | |
.fellows { | |
font-size: 25px; | |
text-align: center; | |
padding: 50px; | |
} | |
.fellows2 { | |
font-size: 0.7em; | |
} | |
.section_arti { | |
width: 830px; | |
margin: 0px auto; | |
padding-bottom: 100px; | |
} | |
.arti { | |
display: inline-block; | |
margin: 0 5px; | |
height: 300px; | |
width: 250px; | |
background-color: #f1efef; | |
} | |
.formh2 { | |
font-family: Arial; | |
font-size: 20px; | |
color: #757575; | |
padding-bottom: 20px; | |
} | |
form { | |
justify-content: center; | |
width: 85%; | |
padding-left: 70px; | |
} | |
form input { | |
width: 100%; | |
margin-bottom: 15px; | |
border: solid 0.18em #969696; | |
} | |
#subject { | |
width: 100%; | |
margin-bottom: 15px; | |
} | |
form textarea { | |
width: 100%; | |
padding-bottom: 70px; | |
border: solid 0.18em #969696; | |
margin-bottom: 20px; | |
} | |
} | |
/* Mobile Styles */ | |
@media only screen and (max-width: 961px) { | |
* { | |
margin-top: 0px; | |
} | |
body { | |
max-width: 1000px; | |
min-width: 768px; | |
margin: 0 auto; | |
padding: 0; | |
} | |
nav { | |
background-color: #5d5d5d; | |
color: #bbbbbb; | |
height: 35px; | |
} | |
ul li { | |
display: inline-block; | |
justify-content: center; | |
padding-right: 15px; | |
padding-left: 15px; | |
padding-top: 5px | |
} | |
ul li:first-child { | |
font-size: 20px; | |
} | |
ul li:hover { | |
background-color: LightGray; | |
border: 1px solid Gray; | |
padding-top: 8px; | |
padding-bottom: 7px; | |
} | |
ul { | |
padding-left: 10px; | |
} | |
.carousel { | |
height: 250px; | |
background-color: #f1efef; | |
} | |
.fellowstext { | |
justify-content: center; | |
font-family: Arial; | |
padding-top: 0px; | |
padding-bottom: 18px; | |
color: #757575; | |
} | |
.fellows { | |
font-size: 25px; | |
text-align: center; | |
padding-top: 5px; | |
} | |
.fellows2 { | |
font-size: 0.7em; | |
} | |
.section_arti { | |
width: 830px; | |
margin: 0px auto; | |
padding-bottom: 0px; | |
} | |
.arti { | |
display: flex; | |
align-content: center; | |
margin-left: 10%; | |
height: 300px; | |
width: 80%; | |
background-color: #f1efef; | |
margin-bottom: 20px; | |
} | |
.formh2 { | |
font-family: Arial; | |
font-size: 25px; | |
color: #757575; | |
padding-bottom: 10px; | |
text-align: center; | |
} | |
form { | |
justify-content: center; | |
width: 85%; | |
padding-left: 70px; | |
} | |
form input { | |
width: 100%; | |
margin-bottom: 15px; | |
border: solid 0.18em #969696; | |
} | |
#subject { | |
width: 100%; | |
margin-bottom: 15px; | |
} | |
form textarea { | |
width: 100%; | |
padding-bottom: 70px; | |
margin-bottom: 80px; | |
border: solid 0.18em #969696; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment