Hi coders,
I’m making the challenges I found on FrontendMentor and I have a problem with the placement of two blocks that need to be joined together and above to have a single block.
This is the project:
and these are my codes:
HTML
<html>
<head>
<title>Single Price Grid Component</title>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="style.css"/>
</head>
<body>
<!--First block-->
<div class="container-one">
<h1>Join our community</h1>
<h2>30-day, hassle-free money back guarantee</h2>
<p>Gain access to our full library of tutorials along with expert code reviews.<br>Pefect for any developers who are serious about honing their skills. </p>
</div>
<div class="container-two">
<!--Second block-->
<h3>Monthly Subscription</h3>
<p>$29 per month</p>
<p>Full access for less than $1 a day</p>
<button id ="sign-up" type="submit">Sign up</button>
</div>
<!--Third block-->
<div class="container-three">
<h3>Why Us</h3>
<ul>
<li>Tutorials by industry experts</li>
<li>Peer & expert code review</li>
<li>Coding exercises</li>
<li>Access to our Github repos</li>
<li>Community forum </li>
<li>Flashcard decks</li>
<li>New videos every week</li>
</ul>
</div>
</body>
</html>
CSS
h1{
color: hsl(179, 62%, 43%);
font-family: 'Karla', sans-serif;
font-weight: 700;
}
h2{
color: hsl(71, 73%, 54%);
font-family: 'Karla', sans-serif;
font-weight: 400;
}
h3{
color: #FFFFFF;
font-weight: 400;
font-family: 'Karla', sans-serif;
text-align: left;
}
p{
font-family: 'Karla', sans-serif;
font-size: 16px;
color: hsl(204, 43%, 93%);
}
.container-two{
float: left;
background-color: hsl(218, 22%, 67%);
border: 50px;
padding: 50px;
width: 240px;
text-align: left;
}
#sign-up{
background-color: hsl(71, 73%, 54%);
color: hsl(204, 43%, 93%);
display: inline-block;
font-size: 16px;
border-radius: 8px;
padding: 14px 60px;
width: 250px;
box-shadow: 10px 10px 5px grey;
}
.container-three{
float: right;
background-color: hsl(179, 62%, 43%);
border: 50px;
padding: 50px;
width: 240px;
text-align: left;
}
ul{
padding: 0;
}
li {
list-style-type: none;
color: #FFFFFF;
}