[Solved] WEB222 Assignment4-Practice Styling elements with CSS
5.0
1 customer review
Digital download
Digital download
$25.00
Message us on WhatsApp for payment or download support.
| CSS Selector | Design Requirement | Suggested CSS Properties |
| .main-container | Set the maximum width to 960 pixels No top or bottom margins Left and right margins must be auto | max-width margin |
| .main-container nav | Set the width to 30% Element is positioned on the left side of the page | width float |
| .main-container .main | Set the width to 70% Element is Positioned on the right side of the page | width float |
| .main-container header | Padding around the content must be 10 pixels Background colour must be #eeeeee There must be a solid bottom border 1 pixel thick, coloured #cccccc Bottom margin must be 30 pixels | padding background-color border-bottom margin-bottom |
| .main-container header h1 | Set the width to 70% The size of the font must be 24 pixels Element is Positioned on the right side The text is right-aligned Top margin must be 10 pixels | width font-size float text-align margin-top |
| .main-container footer | position the element beneath all floating elements (clear the element) Padding around the top and bottom must be 20 pixels Padding around the left and right must be 10 pixels Background colour must be #eeeeee There must be a solid top border 1 pixel thick, coloured #cccccc The size of the font must be 13 pixels | clear padding background-color border-top font-size |
| CSS Selector | Design Requirement | Suggested CSS Properties |
| #logo | Set the width to 30% The size of the font must be 25 pixels The font must be bold | width font-size font-weight |
| #logo img | The image must be 94 pixels wide The image must be vertically positioned in the middle, relative to the Canada text | width vertical-align |
| nav ul | Do not show any bullets or numbers for the list | list-style-type |
| nav ul a | render the link as a block-level element remove the underline Padding around the link must be 5 pixels | display text-decoration padding |
| CSS Selector | Design Requirement | Suggested CSS Properties |
| div.province | Set the width to 30% Each new element is positioned to the right of the previous element, horizontally (hint: float:left) The margin around the element must be 8 pixels The height of the element must be 310 pixels | width float margin height |
| div.province .description | The element must not be any higher than 165 pixels Only If the content goes beyond 165 pixels high, show a scroll bar If the content does not fit in the container horizontally, hide the scrollbar The top and bottom margins must be 8 pixels | max-height overflow-y overflow-x margin |
| div.province a | render the link as a block-level element position the text in the middle of the element (horizontally) set the colour of the background to #555555 Set the colour of the text to #eeeeee remove the underline Padding around the link must be 5 pixels | display text-align background-color color text-decoration padding |
| img.flag | set the width to be 100% of the parent | width |