.pic { float: left; }
.par2 { clear: left; }
float
with divs<h1>
- <h6>
), also logo or icon
Note: You can have several <header>
elements in one HTML document.
However, <header>
cannot be placed within a <footer>
, <address>
or another <header>
element.<footer>
element typically contains:
authorship information
copyright information
contact information
sitemap
back to top links
related documents<main>
element in a document.
The <main>
element must NOT be a descendant of an <article>
, <aside>
, <footer>
, <header>
, or <nav>
element..container {
width:1000px;
margin:0px auto;
}
* {
margin: 0px;
padding: 0px;
}
.container {
box-sizing: border-box;
}
Another way to avoid border, padding PX calculationstable#myTable {
border-collapse:collapse;
}
As default, borders are separated (with value: separate
), but when the property value is collapse
, then borders are collapsed into a single bordercellpadding
attribute of the tableth, td {
border: 1px solid black;
padding: 5px;
}