float example
Floats
Instructions:
- Give section "wrapper" a 700 pixel width and center it. Hint. The section is a block element, so text-align: center; does not work.
- Add a 3 pixel grey border on the bottom of the header tag.
- Display the menu horizontally across the page.
- Kill the padding on the unordered list in navigation (introduced after the reset)
- Remove the underline from the links and color them white. Color background a dark color.
- Give links a 10 pixel margins, 10px 20px padding and set their display to inline-block.
- Style the hover green.
- The left and right columns are to be exactly 150 pixels wide. Color the background "silver".
- The center column is to be 400 pixels wide and the background is colored #ddd;.
- Using floats, position the three content boxes so that the web page is a 3 column layout.
- Add 20 pixel padding to all columns. Hint. All columns are divs.
Make the float layout responsive.
- Display the navigation list items as blocks.
- Set the width of the navigation links to 100% and center the text.
- When the screen goes below 700 pixels engage media queries — @media screen and (max-width: 700px) {}
- Make column width 100%. This stacks the floats.
- Add 10 pixel padding to the sides of all section elements.
Right column