Interactive Design Project 2
Eric Chang (0378298)
Bachelor Of Design in Creative Media
Interactive Design
Instruction:
Display Property
The display property is CSS's most crucial property for controlling layout. Every HTML element has a default display value, typically either block or inline.
Block-level elements like <div> start on a new line and stretch horizontally as far as possible. They stack vertically on the page.
Inline elements like <span> flow within text content without disrupting paragraph flow. They sit side by side horizontally.
Developers can override default display values - for example, making
list items (<li>) inline to create horizontal navigation menus. Other display
properties include inline-block, flex, and grid.
Box Model
Most HTML elements (body, p, h1, div, ul, ol, li) are containers or "boxes." Each box has three layers surrounding its content, from inside to outside:
- Padding - Space between content and border
- Border - The edge of the element
- Margin - Space outside the border, separating elements
These layers can be sized using CSS units like em, %, and px. The document provides an example showing how to style a paragraph within a div:
- The div gets a red background, black border, and no padding/margin
- The paragraph gets a white background, 1em padding, 10px blue solid border, and 10px margin
The purpose of wrapping elements in div tags is to create layouts. CSS positioning is another method for layout control.
Flexbox
CSS Flexbox is introduced as a powerful tool for creating responsive layouts that builds on Box Model understanding. Key concepts include:
Flex Container: The parent element with
display: flex
Flex Items: The children of the flex container
Important properties for flex containers:
- display-flex: Establishes the flex container
- flex-direction: Controls item direction (row, column)
-
justify-content- Aligns items along the main axis (start, end, center, space-between, space-around) -
align-items- Aligns items along the cross axis (stretch, center, start, end)
Project 2:
| Fig 1.0 Contact us page |
Next, I decided to create the homepage, for this part i decided to make it relatively simple with the hope of presenting the information in a clear way, I was at first scared that Mr.Shamsul wouldn't approve my design, but he was fine with the overall design.
| Fig 1.1 Homepage |
Next is the history and awards page, for this page i tried my best to keep the design language from the original website but make it better overall, and so below are the results for the about us page.

Comments
Post a Comment