HTML and CSS Reference
In-Depth Information
The menu and content will both be block elements, but we want them to sit alongside each
other. In order to achieve that we can use the float property: this tells an element to float to
the left or right of the preceding element, instead of above or below the element.
The following is the sample code to produce the desired results:
<!DOCTYPE html>
header {
background: blue;
Search WWH ::

Custom Search