HTML Coding Question RBH
by willbuck
HTML
<html>
<head>
</head>
<body>
<div id="nav">
<ul>
<li>Home Screen of Awesomeness</li>
<li>Search</li>
<li>Shop</li>
<li class="right">My Account</li>
</ul>
</div>
<p style="clear: both"> </p>
<div class="column-left">
<div class="box-content">
<h3>Lorem Ipsum</h3>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
</div>
</div>
<div class="column-right">
<div class="box-content">
<h3>Eta Plurbis Mumble</h3>
"Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?"
</div>
</div>
...
CSS
html {
margin-top: 25px;
height: 100%;
clear: both;
}
body {
font-size: small;
margin: 0px;
padding: 0px;
background-repeat: no-repeat;
background-image: linear-gradient(top, #30D9BD 15%,#CFE6E6 100%);
background-image: -o-linear-gradient(top, #30D9BD 15%, #CFE6E6 100%);
background-image: -moz-linear-gradient(top, #30D9BD 15%, #CFE6E6 100%);
background-image: -webkit-linear-gradient(top, #30D9BD 15%, #CFE6E6 100%);
background-image: -ms-linear-gradient(top, #30D9BD 15%, #CFE6E6 100%);
background-image: -webkit-gradient(
linear,
left top,
left bottom,
color-stop(0.28, #30D9BD),
color-stop(1, #CFE6E6)
);
height: 100%;
clear: both;
}
div#nav {
padding-top: 10px;
max-height: 120px;
float: left;
border-bottom: 2px solid #222;
width:100%;
background-color: #ECECEC;
}
div#nav ul {
list-style: none;
font-size: large;
font-weight: bold;
color: #333;
margin-left: 20px;
}
div#nav ul li {
border-radius: 5px 20px 0px 0px;
border: 1px solid #222;
border-bottom: none;
float: left;
padding: 2px 6px;
}
div#nav ul li.right {
float: right;
margin-right: 10px;
}
div#nav ul li:hover {
background-color: #10A98D;
color: #EEE;
}
div.column-left {
float:left;
padding: 20px;
margin-left: 30px;
width: 35%;
}
div.column-right {
float: right;
padding: 20px;
margin-right: 30px;
width: 45%;
}
div.box-content {
padding:10px 8px;
border: 1px solid #222;
border-radius: 5px;
max-height: 700px;
background-image: linear-gradient(top, #CCCBCC 15%,#FFFFFF 100%);
background-image: -moz-linear-gradient(top, #CCCBCC 15%,#FFFFFF 100%);
background-image: -o-linear-gradient(top, #CCCBCC 15%,#FFFFFF 100%);
background-image: -webkit-linear-gradient(top, #CCCBCC 15%,#FFFFFF 100%);
background-image: -ms-linear-gradient(top, #CCCBCC 15%,#FFFFFF...
JavaScript
// Tests ability to do CSS
// Step 1
// A. Implement a navigation bar that looks roughly like this: (picture)
// B. Add css that changes the style to something that "pops" when hovered over
// C. BONUS POINTS! Do a dropdown
// Step 2
// Add a content box that looks like this: (picture 2)
// Step 3
// Now add another box just like it, side by side
// Step 4
// A. Double the content size of one of the boxes, see that it stretches its size to match the content
// B. Force the two boxes to match each other's height on the page (regardless if one has less content)
// Step 5 (Extra Tricky)
// The site has gotten more complex in its design. Add the proper boxes that make the site look like this:
// (picture 3, 3 boxes wide and 2 tall, except box furthest right spans both rows)