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>
<html>
<head>
<style>
header {
height:100px;
background: blue;
Search WWH ::




Custom Search