Ashley Williams
Thursday, 25 April 2013
<!-- INSTRUCTIONS
1. refactor the <!DOCTYPE> and <html> tag to use the new HTML5 syntax
2. replace the <divs> with the appropriate HTML5 elements
3. remember to update the header levels when creating new header elements
4. add article tags around appropriate elements
-->
float: left / right / none
<!-- INSTRUCTIONS 1. remove all inline and <head> styles and put them in the external stylesheet so that you no longer need the !important for background-color 2. center the slogan and make it italic using an ID selector 3. float the aside to the right and add 10px of margin to its left and bottom sides 4. then make the article width the same width as the aside and float it left -->
<article>
<aside>
<img src="giraffe.png" height="100px"/>
</aside>
</article>
.group:before,
.group:after {
content: "";
display: table;
}
.group:after {
clear: both;
}
.group {
zoom: 1; /* IE6&6 */
}
overflow: visible / auto / hidden / scroll
position: static / relative / absolute / fixed
top: // left: // bottom: // right:
1. header { -moz-border-radius: 2px; }
2. .row { text-shadow: 4px 4px 1px #fff; }
3. #copyright { text-style: italic; }
4. <a style="color: red">Delete</a>
5. aside { padding: 0 0 20px 20px; !important}
<!-- INSTRUCTIONS 1. refactor this code to use clearfix to clear floats 2. use a nested selector to make paragraphs in asides italic 3. for anchor tags inside aside paragraphs, override the inherited font-style and make it normal 4. refactor the css for .active and .copyright so that !important can be removed -->
display: none / block / inline / inline-block
Block elements:
<div>, <p>, <ul>, <ol>, <li>, <h1>...<h6>
<span>, <a>, <em>, <img>, <strong>