I am working on a straight HTML 5 website for learning.
Before my CSS might look like:
div.BoxHouse {
margin-left: 72px;
margin-right: 20px;
}
div.FloatingBox {
text-align: center;
float: left;
width: 32%;
border: 1px solid #3F4933;
padding: 0px;
background-image: url(transwhite.png);
margin-left: 0.5em;
}
#content {
width: 90%;
background: url(transwhite.png);
border: 1px solid #3F4933;
margin-left: 72px;
margin-right: 20px;
margin-top: 20px;
padding: 5px;
z-index: 1;
margin-bottom: 40px;
overflow:auto;
top: 10em;
padding-top: 10px;
}
I thought that with HTML5 I could just do this in code:
<header>
<hgroup>
<content>
<BoxHouse>
<h1>HTML 5</h1>
<h2>The mark-up language for fun and profit</h2>
</BoxHouse>
</content>
</hgroup>
Given this as new CSS:
BoxHouse {
margin-left: 72px;
margin-right: 20px;
}
FloatingBox {
text-align: center;
float: left;
width: 32%;
border: 1px solid #3F4933;
padding: 0px;
background-image: url('../transwhite.png');
margin-left: 0.5em;
}
content {
width: 90%;
background-image: url('../transwhite.png');
border: 1px solid #3F4933;
margin-left: 72px;
margin-right: 20px;
margin-top: 20px;
padding: 5px;
z-index: 1;
margin-bottom: 40px;
overflow:auto;
top: 10em;
padding-top: 10px;
}
But it clearly doesn't work. What am I doing wrong?