I'm brand new to the world of programming and I'm currently attempting to recreate this webpage layout using HTML & CSS: Click here for desired look. My approach so far has been utilizing CSS grid, and while I grasp the concept, I'm facing challenges in implementing it on my own page:
.wrapper {
display: grid;
grid-template-columns: 0.9fr 1.1fr;
grid-template-rows: 1.1fr 1.8fr 0.1fr;
grid-template-areas: "header header" "content content" "footer footer";
grid-column-gap: 1em;
grid-row-gap: 1em;
background-color: #fff;
}
.wrapper>div {
padding: 1em;
}
.mainheader {
grid-area: header;
width: 70%;
background-color: #fff;
}
.content {
grid-area: content;
width: 40%;
font-family: Trebuchet MS;
background-color: #fff;
color: #000;
}
.mainfooter {
grid-area: footer;
background-color: #854242;
width: 40%;
border-radius: 25px;
padding: 20px;
width: 800px;
height: 30px;
li {
display: inline;
}
#h1,
h2 {
color: #854242
}
#content {}
#footer1 {
background-color: #999999
}
#footer2 {
background-color: #999999
}
<body>
<div class="wrapper">
<div class="mainheader">
<header>
<h1>Web Development for Mobile Devices</h1>
<h2>Responsive Web Design</h2>
<img src="images/header.jpg" alt="Header Image" width="960px" />
<nav id="mainmenu">
<ul>
<li><a href="index.htm" title="Homepage">Home</a></li>
<li><a href="#" title="Page Two">Page 2</a></li>
<li><a href="#" title="Page Three">Page 3</a></li>
<li><a href="#" title="Page Four">Page 4</a></li>
<li><a href="http://www.example.com" title="Example Link">Example</a></li>
</ul>
</nav>
<div id="search">
<form>
<input type="text" name="searchstring" id="searchstring">
<input type="submit" value="Search" id="searchbutton">
</form>
</div>
<!-- End of search -->
</header>
</div>
<div class="content">
<section>
<h2>Box 1</h2>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit...
</p>
<p>
More dummy text for illustration purposes.
</p>
<footer id="footer1">
<p>
This section should be at the start to the left.
</p>
</footer>
</section>
<section>
<h2>Box 2</h2>
<p>
Another paragraph of filler text goes here...
</p>
<footer id="footer2">
<p>
This section should be at the start to the right and below.
</p>
</footer>
</section>
</div>
<div class="mainfooter">
<footer>
<p>Footer - Web Development for Mobile Devices</p>
</footer>
</div>
</div>
</body>
What am I missing here? Should I be tackling this differently, possibly with bootstrap instead? <-- Please note this is a very early draft -->