(h/t to Codecademy for putting together this great lab)
In this project, you will follow step-by-step instructions to fix a fictional restaurant's website. All of the HTML and most of the CSS is intact, however, the box model properties have yet to be set.
In order to complete this project, you must know how to set an element's height, width, padding, border, and margin using CSS.
- please
forkandclonethis project to your own account
- Set the width of images in
navto 180 pixels. - Set the width of elements with class
buttonto 200 pixels. - Set the width of
ul.nutrition lielements to 200 pixels.
- Set the height of elements with class
contentto 500 pixels. - Set the height of elements with class
headerto 320 pixels.
- Set the padding of
.header h1elements to 20 pixels. - Set the padding of elements with class
buttonto 20 pixels. - Set the padding of
ul.nutritionelements to 40 pixels. - Set the padding of
ul.nutrition lielements to 10 pixels of top and bottom padding and 20 pixels of left and right padding.
- Set the margin of
nav spanelements to 10 pixels of top and bottom margins and 0 pixels of left and right margins. - Set the margin of
nav imgelements to 0 pixels of top and bottom margins, and the left and right margins to set automatically. - Set the margin of elements with class
contentto 10 pixels of vertical margins, and the horizontal margins to set automatically. - Set
.header h1elements to have 0 pixels of vertical margins, and the horizontal margins to set automatically. - Set elements of class
buttonto 40 pixels of vertical margins, and the horizontal margins to set automatically. - Set
ul.nutrition lielements to 3 pixels of bottom margin. - Set
.content .bodyelements to have zero pixels of vertical margin, and the horizontal margins to set automatically (i.e. centered on the page).
