COSC 360 Lab 4 – Layout with CSS solved

$35.00

Category: You will receive a download link of the .ZIP file upon Payment

Description

5/5 - (1 vote)

Information:
Using the provided HTML file and images, correctly style the page. The spacing does not have to
be exact but should approximate the layout of the page. In addition, you will need to style the
image overlay. The page is a two-column layout with a header and footer, with placeholder
code. Do not change the HTML. You will need to inspect the HTML code to determine the
correct class and id values for different elements. Only your submitted stylesheet will be
graded.
Instructions:
While an exact match is not required, attempt to reproduce as close as possible noting the
marking rubric.
1. **Do not modify the HTML code**
2. View the provided HTML5 code and images. Do not change the directory structure. You
will be able to view the page without a webserver. Examine the lab4.html file to
understand how specific elements have been identified.
3. Create a new stylesheet called lab4.css and place it relative to your html file as
css/lab4.css.
4. For the page, use the following font-family and font-size information:
font-family: Tahoma, Helvetica, sans-serif;
h1 1.8em
h2 1.2em
p, body 0.9em
5. Using floating element, create the two-column layout as shown along with the header
and footer. With the two-column layout, both the side column and main column need to
be the size height. In order to do this, set the height of each to be 600px. The challenge
is that as the page zooms, the content from the main column will wrap and overflow.
Use the overflow property to allow the element to scroll when the size becomes too
small to display the content.
6. Change the margins and padding of the

element. For most of the margins,
padding, widths and heights (with the exception of the height of the right-sidebar
which is set to 600px), attempt to use em units. Required spacing can be found on the
page image.
7. For the

, set the height to 45px. Ensure that as the viewport changes size,
the header text does not wrap. The text in the header is 1.8em.
8. Use the techniques presented in Section 5.3.3 and 5.3.4 to display the content within
the

. Use the same float technique for the

. You can use pixel
units for overlapping elements.
2
9. The colors used are #ff8800, #474747 and #F5F5F5, but you are free to choose any
colors as long as the physical page layout is the same (including background colors for
the side and main column). You can find complementary color schemes with tools such
as http://paletton.com.
Testing:
Take the time to test your page with different browsers and at different zoom levels. Ensure
that elements in the page scale appropriately.
Evaluation Criteria:
4 points Page layout with floats and correct spacing
1 point Major page element styling
2 points Header (zoom compatible)
4 point Footer layout (floats, size, color, etc.)
2 point Image overlay in posts
2 points Image position/size in posts
2 point Button position/styling
3 points Individual post layout
5 em
20 em
5 em 5 em
5 em
2 em
2 em
2 em


use
margins to
create
space


float to
the left
and newbanner
image
positioned
over image
Each major

in the