Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save spencermathews/0bdb5ebcea3c42d74256 to your computer and use it in GitHub Desktop.
Save spencermathews/0bdb5ebcea3c42d74256 to your computer and use it in GitHub Desktop.
css float and validation start
<section>
<h2>col1</h2></section>
<section>
<h2>col2</h2></section>
<footer>
<!--add validation for html5 and css3; find the code in ex 1, 2, 3 r 4 instructions; add target="_blank" in the link <a> tag so that the browers opens a new page with the validation results-->
</footer>
* {
margin: 0px;
padding: 0px;
}
body {
font-family:Verdana;
}
section:first-child {
float: left;
width: 300px;
height: 500px;
background-color: red;
}
section:nth-child(2) {
float: left;
width: 300px;
height: 500px;
background-color: purple;
margin-left: 24px;
}
footer {
clear: left;
width: 100%;
height: 72px;
background-color: magenta;
text-align: center;
}
footer a {
position:relative;
top:20px;
text-decoration: none;
color: white;
font-size: 24px;
padding: 20px;
}
footer a:hover{
background-color:#333;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment